A répondu
Why does ode45 output "NaN" after some time, with this time depending on the input
@Merritt, There was an error when I ran testinstudy, because it calls heightconst(), which you did not provide. SO I commented ...

6 mois il y a | 0

A répondu
how to crop figures from excess white area
@Sven Larsen, One can reduce the whitespace by clicking and dragging the edgesof the image window so that it more closely matche...

6 mois il y a | 1

A répondu
Cropping an irregular image in matlab
@Lauren Smith, it appears to me that a rectangular crop would work for this image. A rectangle can be selected that includes not...

6 mois il y a | 0

A répondu
How can I fix my code of the heat equation?
@Jesus, [Edit: Correct "x(i)=pos(1) & y(j)=pos(2)" to "x(i)==pos(1) & y(j)==pos(2)".] [Edit: Fixed the update formula.] Am I...

6 mois il y a | 0

A répondu
Rungekuttan for a system of 2 DOE functions
@Emelia, I recommend that you write a set of first order differential equations for your system. Let the four variables be x, ...

6 mois il y a | 0

A répondu
deg2nm give unrealistic answer
@Bumpa, deg2nm(1) And when I run it locally I get the same thing.

6 mois il y a | 0

A répondu
How to apply the same operation to an ever increasing number of columns?
@Zulfiqar Alibhai [I moved my suggestion from comment section to answer section.] a=[1:7]; b=zeros(20,7); c=b; for j=1:7, b(:...

6 mois il y a | 0

A répondu
Solve Displacement Driven Mass/Spring System
@Joerg Fricke-Schmidt, You have written a system of first order differential equations, but I don't think it describes the syst...

6 mois il y a | 2

A soumis


Bilinear Fit
Fit two intersecting straight lines to a set of x,y data points.

6 mois il y a | 10 téléchargements |

Thumbnail

A répondu
Solving a system of ordinary differential equations
@Emily, It looks reasonable to me, especially when I simulate for a longer time. tspan = [0 500]; %timespan y0 = [0.0675 0...

6 mois il y a | 0

A répondu
How can I make a vector that looks like this [2 1 2 1 1 4 1 1 6 1 1 8...1 100 1]?
@Rowdy cv4=[2,1,2,ones(1,148)]; for i=6:3:151, cv4(i)=2*i/3; end cv4 Try it.

6 mois il y a | 1

A répondu
I want to fit the curve with two linear curves and find the point where the fitted curve deviates from the linear relationship, sort of the tangent point.
@T, [edit: corrected typo in formula for ] The figure you included shows two striaight lines (black) fitted to a portion of a ...

6 mois il y a | 0

A répondu
how to make linear fit
@ahmad Saad, There are a number of ways you could do it. here is one example: x=0:100; y=2*x+20+10*randn(1,101); p=polyfit(x...

6 mois il y a | 0

| A accepté

A répondu
Repeating elements in a vector
@Furkan Sencer Kaçar, A = [0,1; 1; 5; 10; 20] is not valid because it uses a comma as well as semicolons. I assume you meant...

6 mois il y a | 1

A répondu
2nd Order Non-Linear Equation Numerical Solution and Plot
@Conlen O'Brien, tspan=[0 10]; x0=[-25 0]; A=1; B=1; [t,x] = ode45(@(t,x) [x(2);-A+B*x(2).^2], tspan, x0); Do you think the...

6 mois il y a | 0

| A accepté

A répondu
How to obtain the translational and angular accelerations of center of mass in rigid body
@Feng, I have moved my comment to an answer, since that is what I intended. To start, we should know the positions of the senso...

6 mois il y a | 0

A répondu
How to do FFT on I,Q data
@Ankit, Let's assume you have read in data from a two-column file. Column 1 is in-phase, column 2 is quadrature. N=256; fs=1...

6 mois il y a | 1

A répondu
Getting an equation from a signal transfer function
@Sifiso Mzobe, There are two distinct threads in this discussion. One thread is an answer to your original quesiton: 'I meas...

6 mois il y a | 0

A répondu
a code that works before started working so why
@Min Khant, This method makes things look a lot more complicated than necessary. The state vector x() has the usual components...

6 mois il y a | 0

A répondu
FFT Analysis Issue: Unexpected Harmonic Multiples in Vibration Signal Frequency Plot
@Valeriya Kostyukova, [edit: corect typos] I agree with @Star Strider that you are plotting the 2-sided spectrum, and that is ...

6 mois il y a | 0

A répondu
How to add vertical axis break to given plotting scheme
@Tristen, Check these out at the File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/45760-break-y-axis?s_tid=...

6 mois il y a | 0

| A accepté

A répondu
Heart rate signal using simulink
@Rakan Khair, You replied that you are afraid that the ECG board (Arduino board) has noise. Let's collect some data to see if ...

7 mois il y a | 2

| A accepté

A répondu
How to find largest Lyapunov exponent for the second order forced duffing oscillator by using the time series data [obtained by ODE45]?
@PONNADA, If you have access to the Control Systems toolbox, do lyapExp = lyapunovExponent(X,fs) where X is the signal and Fs...

7 mois il y a | 2

| A accepté

A répondu
How to plot FFT and spectrogram of I-Q data?
@Meghna Roy Chowdhury, Since you did not provide the data file, I have created a complex signal y(t) composed of band-limited G...

7 mois il y a | 0

A répondu
How to plot FFT and spectrogram of I-Q data?
@Meghna Roy Chowdhury, I assume the data is in a file called "filepath", that you want to open the file for reading (hence the ...

7 mois il y a | 0

A répondu
How to tweak an equation to properly fit a dataset using lsqcurvefit?
“Think??” Makes me chuckle :) Interesting plot and interesting that all pressures are unique.

7 mois il y a | 0

A répondu
How to tweak an equation to properly fit a dataset using lsqcurvefit?
@Juneight, {Edit: Dimensional analysis needs changing because now you say x3 is [Pa] and before you said x3 is [m]. You sai...

7 mois il y a | 0

A répondu
Why does my random walk simulation come out so weird?
@Kevin Nelson, Your formula introduces an increaing probability of "stay the same on each step" as M, the number of walks, grow...

7 mois il y a | 0

A répondu
My graph is not picking up my time increments, its suppose to have a nice curve, but its coming out as a straight line.
@BAILEY MCMASTER, clear Ts=30; % ms Td=60; % ms Chs=.001; % L/mmhg Chd=.015; % L/mmhg N=800; % number of elements t=0:1:8...

7 mois il y a | 0

| A accepté

A répondu
Multiple errors- Not that great at Matlab :(
@azaandria, It looks like 3 errors but it is really only one error. Error using DynamicResponse/parfor%supply_1 Index in posi...

7 mois il y a | 0

Charger plus