Respondida
How can I find the total distance of the path from the dfsearch on this code?
@Uche, Try dTot=0; for i=2:length(v) dTot=dTot+sqrt((x(v(i))-x(v(i-1)))^2+(y(v(i))-y(v(i-1)))^2); end That seems too...

casi 3 años hace | 0

| aceptada

Respondida
Plotting different color points based on array values
@Elena Zucchetti, One way: x=1:100; N=length(x); DE=10*rand(1,N); c=zeros(N,3); %allocate colors for i=1:N, if DE(i)>5, c(...

casi 3 años hace | 0

| aceptada

Respondida
Why I don't get a curve plot by adding term2 to phi?
@Shaily_T, Please post a question in the simplest possible form that will allow others to assist you. In this case, you can ma...

casi 3 años hace | 1

Respondida
How can I remove a pulse from a soundwave?
@Valentin Puiu, Sound is in the range 20 Hz-20 kHz. A 10 Hz signal will be felt more than heard. You have added a square wave...

casi 3 años hace | 1

| aceptada

Respondida
Solving a system of second order ODE backwards
@Padi, First, try to get your script to work in the normal forward direction. The funciton needs to be adjusted. You have fun...

casi 3 años hace | 1

Respondida
Calculate phase shift i bode plot for 2 order system data
@Olga Rakvag, [edit: In case it's not obvious: Add the 2*pi factor in both places where f/w_n appears, in your formula for thet...

casi 3 años hace | 1

| aceptada

Respondida
Calculate the occupied bandwidth of non-stationary signals
@Yousef, yes there is a way. Decide how you want to define and measure bandwidth. For example, you could define and measure it ...

casi 3 años hace | 0

Respondida
Tranform a point another coordinate system
@Furkan KORKMAZ, Do you want a symbolic solution or a numerical solution? If you want a numerical solution, then define the co...

casi 3 años hace | 0

| aceptada

Respondida
Circular time plots using polarhistogram?
@Sadegh Rahimi, Suppose you have the wind direction in degrees at 1 minute intervals for 1 day: windDir=360*rand(1,1440); Mak...

casi 3 años hace | 0

| aceptada

Respondida
How to make equation work for each frame of data?
@Amanda, [edit: correct error in my code] This looks like something I would have assigned when I taught biomechanics or when I...

casi 3 años hace | 1

| aceptada

Respondida
Trying to make 2 data sets the same length
@Matthew, You can do it, but that does not mean you should do it. On what basis do you justify the pairing of the samples from...

casi 3 años hace | 1

Respondida
how to plot windrose diagram given (x,y) coordinates with the corresponding values
@OBO, See wind_rose in the File Exchange. Or use polarhistogram(), as in the example in the second answer here, by @Al Mac.

casi 3 años hace | 0

Respondida
Time-dependent system ODE with initial half-sine pulse shows incorrect results
@Mathew Smith, If I am correct that the base moves according to a prescribed function of time, then the differential equation c...

casi 3 años hace | 0

Respondida
Time-dependent system ODE with initial half-sine pulse shows incorrect results
@Mathew Smith, I would not use cumtrapz() or (worse) nested calls to cumtrapz(cumtrapz()). I don;t understand the right hand s...

casi 3 años hace | 0

Respondida
maps contourf, griddatat or scatterdata
@Mohamed, I assume you have data at the specific points shown on the Matlab plot. If that is true, then the Matlab plot looks v...

casi 3 años hace | 1

| aceptada

Respondida
How do you repeat a QRS signal?
@collegestudent, If you want to use frequency analysis to examine the heart rate frequencies, you will need a lot of beats. 30...

casi 3 años hace | 1

| aceptada

Respondida
Generates normals with multiple three-point coordinates
@Chenglin Li, [edit: I simplified the calculation of the normalized normal vectors] I ran your code. It runs without error. I...

casi 3 años hace | 0

| aceptada

Respondida
Detection of the carrier's audible announcement
@Matyas Rychetsky, I do not know of anything better than the voiceActivityDetector. The examples here are very good, in my opi...

casi 3 años hace | 0

Respondida
Can anyone tell me why this error is occurring and how to solve it? Thank you.
@Rafia Noshin, please include a sample ecg data file so we can run the code. What error do you get? When I run that line, I get...

casi 3 años hace | 0

Respondida
I need to create a 3D surface plot for a multiple linear regression
@Anna, Please attach sill as a text file containing 3 columns of data and no headers. Please format your code as code (by high...

casi 3 años hace | 0

Respondida
Plotting of a surface
@Andrei, My understanding is that you want to create a potential function which is the product of a radial component and an ang...

casi 3 años hace | 1

| aceptada

Respondida
Shifting plotted points from green to red
@Jared Dube, to plot a line with continuously variable color: t=0:100; x=-500*cos(2*pi*t/100); y=500*(x/500).^2+t; hsv=[lins...

casi 3 años hace | 1

Respondida
Shifting plotted points from green to red
@Jared Dube, [edit: added 'filled' to fill in the points] [edit 2: change from red -> green to green -> red, as originally req...

casi 3 años hace | 0

| aceptada

Respondida
How to fit the cdf to a function?
@Hozifa, [edit: correct spelling and grammar] I put the data in a text file so it is not in your code. It appears that the da...

casi 3 años hace | 0

| aceptada

Respondida
Creating a file from different-sized files.
@Nada, Line_2.mat contains several variables. Let's assume you are interested in the one called Data. To append the data in T...

casi 3 años hace | 0

| aceptada

Respondida
Plotting Data Points with Lines to Indicate Unchanging Conditions Over Time
@John, stairs(x,y) I use it for heart rate data all the time, since, once you have a rate estimate from detecting the second R...

casi 3 años hace | 0

| aceptada

Respondida
Stress Strain calculation in matlab
@Ilksen Altuntas, Good advice from @the cyclist, as always. And from @Cameron also. If you just have a text file with 2 colum...

casi 3 años hace | 0

Respondida
Polyfit function is returning a partial line of best fit
@Gregory Lang, Since you did not include a .mat file with the data being fitted (sbchl, sbb555, gichl, gib555), others cannot r...

casi 3 años hace | 0

| aceptada

Respondida
Are there any matrix balancing/scaling function in matab for complex rectagular matrices?
@Kalasagarreddi Kottakota, [edit : correct spelling] You say you want to invert a 45x2 matrix. As you know, a non-square matri...

casi 3 años hace | 0

Respondida
How to check the proportionaly of columns of a complex rectagular matrix?
@Kalasagarreddi Kottakota The correlation is a measure of the proportionality of two vectors. When the vectors are complex, the...

casi 3 años hace | 0

Cargar más