Answered
4th order non linear differential equation
‘I want to plot ode and not the sum of D ,D2f,D3f, D4f I want to plot the ode as one solution’ Then try this (using my prev...

7 years ago | 0

| accepted

Answered
IIR Bandstop (Notch) Filter design
I have absolutely no idea what ‘2.01’, ‘2.02’ and ‘2.03’mean. Here is a prototype bandstop filter design that you can change ...

7 years ago | 0

| accepted

Answered
what matlab tool to use to estimate a system of nonlin ODEs' parameters for an experiment?
See my Answer to your related Question (four minutes earlier): How to estimate parameters for a system of ODE's by using replica...

7 years ago | 1

Answered
How to estimate parameters for a system of ODE's by using replicates data ?
There are several examples, two being: Parameter Estimation for a System of Differential Equations and of course Monod kinetics...

7 years ago | 1

Answered
what are the units when we plot the absolute of fft
‘Is it Hz or rad/sample?’ Both, depending on the chosen interpretation. The ‘sampling frequency’ (‘Fs’) of the vector is by ...

7 years ago | 0

Answered
Plotting the solution to a system of ODE on an interval that doesn't contain the initial time
‘Is the command w0 = [z(1) z(2)]; correct?’ No, not if you want to do what you indicated. If you want to use the last val...

7 years ago | 0

| accepted

Answered
help me to solve for θ?
Use the contour function to find the required coordinates, then extract them and plot the extracted values in a second plot: ...

7 years ago | 0

Answered
binary to ascii converting
Try this: binstr = char(randi([0 1]+'0', 1, 96)); % Create (Random) Binary Character Vector binstr8 = reshape...

7 years ago | 1

| accepted

Answered
Text output is printed multiple times
The .png image is an (MxNx3) matrix, so the calculations occur for each ‘page’ in the third dimension.

7 years ago | 0

| accepted

Answered
can someone help me to solve the real and imaginary values of x?
I believe the equation in help me to solve for θ? is the same problem. Please see my Answer.

7 years ago | 0

Answered
Polyfit minus one term
Use the mldivide,\ function with a specific design matrix (since this is a linear problem): D = load('Data001.mat'); x = D....

7 years ago | 1

| accepted

Answered
plot function give data error
They would appear to be cell arrays. This will work: figure plot([x1{:}], [y1{:}]) however you will probably prefer this ...

7 years ago | 0

Answered
fourth order differential equation
If an analytical solution is not an option, and a plot of the solution is the objectrive: syms f(x) X Y Df = diff(f,x); D2f...

7 years ago | 0

| accepted

Answered
extracting datetime from csv file
I am not certain what the ‘+00:00’ does, however eliminating it is straightforward. Try this: t = datetime('2016-08-10 00:...

7 years ago | 0

| accepted

Answered
How can I filter/remove peaks in my curve? (not a signal)
It is not obvious what result you want. If you just want a regression line through your data, first use the fillmissing (R2016b...

7 years ago | 1

| accepted

Answered
Help needed on ODE solving coupled with fmincon
It is best to fit the initial conditions as well as the kinetics parameters. I would not put an upper bound on the kinetics par...

7 years ago | 0

| accepted

Answered
add uncertainty line graph
I thought we already solved that problem in Add uncertainty interval time-series.

7 years ago | 1

Answered
Drawing a birdseye view of a velodrome
Experiment with this: t1 = linspace(0, pi, 25); t2 = linspace(pi, 2*pi, 25); r = 2.5; ...

7 years ago | 0

| accepted

Answered
Solving the equations in MATLAB 2018a`
‘To solve the above 4( eqn1, eqn2 fixed and psc ) equations ...’ The ‘fixed’ equation does not appear to have survived being ...

7 years ago | 1

Answered
How to insert value in the first of vector?
Probably the easiest way is to do exactly that: CumProb = [0.1579 0.2105 0.3158 0.4211 0.5263 0.7895 1.0000]...

7 years ago | 0

| accepted

Answered
I have a function statement that works in Octave but fails in Matlab
In most instances, only anonymous functions can occur in a script file in MATLAB. The documentation section on Create Functio...

7 years ago | 0

Answered
Replacement of Nan to 2.74
Use the isnan function to detect it and its location. Since this seems to be a homework problem, I leave the rest to you. (If ...

7 years ago | 1

Answered
Why can't i plug in a range of values into this equation?
The ‘equ’ function needs to use element-wise operations (using the dot operator): r= linspace(0.001,0.1); equ = 1000*((1+r)./...

7 years ago | 1

| accepted

Answered
making a grouping variable
Using the illustration in Test for the Same Distribution Across Groups, it would likely be best to create vectors instead of mat...

7 years ago | 0

Answered
Why I keep getting error on this Numerical Integration problem ?
Do not use the function handle representation here. Just use: s1=int(f,x,a,b); It would be preferable to define ‘f’ as a s...

7 years ago | 0

Answered
kruskalwallis test, mean or median?
From the documentation section More About: The Kruskal-Wallis test is a nonparametric version of classical one-way ANOVA, and ...

7 years ago | 0

| accepted

Answered
how to do Fourier transform with current data
Try this: E = dlmread('y_spectrum.txt',' ',1,0); t = dlmread('t_spectrum.txt',' ',1,0); Ts = mean(diff(t)); Fs = 1/Ts; Tst...

7 years ago | 0

| accepted

Answered
How to save all values generated by a for loop into an array?
Subscript it: counterv = nan(1,100); for n=1:100 die1= randi(6); die2 = randi(6); dicesum = die...

7 years ago | 0

| accepted

Answered
Interpolate from monthly to annual time series
‘What I use for xq value?’ You don’t. Instead, you convert them to a timetable (create your matrix as a table, then u...

7 years ago | 0

| accepted

Answered
How to plot vertical line from X Axis to values on graph?
The easiest way to do this is to use the stem function. Example — f = 0:0.05:pi; %...

7 years ago | 0

| accepted

Load more