Answered
Estimating parameters (ODE45 and fminsearch)
See: * <http://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting#comment_89455 *Monod kinetics ...

8 years ago | 0

Answered
Fslove don't find the right solution
We don’t have your *|‘Rez’|* constants, so we can’t run your code. However, using *|0|* as any initial parameter es...

8 years ago | 0

Answered
Solving a system of integral equations numerically
There are several roots, and it doesn’t always converge on the published solutions. *_The Code_ —* a2 = @(b) integral...

8 years ago | 1

| accepted

Answered
Creating a 7x8 matrice in range of x and y
If you only want integers: M = randi([5 26], 7, 8);

8 years ago | 0

| accepted

Answered
Error with LaTeX formatting in figure legend
See if substituting: *|\left[|* for *|[|* and *|\right]|* for *|]|* improves your result. It worked when I experimented with it...

8 years ago | 1

| accepted

Answered
how can I get the square wave in matlab
Try this: samples = 100; t = linspace(-5, 3, samples+1); f = 1*((t >= -5) & (t <= -1)) + (-1)*((t > -1) & (t <= 3));...

8 years ago | 0

| accepted

Answered
how to generate this signal
Try this: t = linspace(0, 40, 250); f = 1*((t >= 10) & (t <= 20)) + (-1)*((t > 20) & (t <= 30)); figure(1) p...

8 years ago | 0

| accepted

Answered
Merge number of curves
Try this: t1 = linspace(0, 6, 500); % Create Independent...

8 years ago | 1

| accepted

Answered
nyquist plot from frequency response data
See the documentation on <https://www.mathworks.com/help/ident/data-preparation.html *Data Preparation*> (link) for the System I...

8 years ago | 0

| accepted

Answered
How to integrate angular velocity to get angular position?
If the integral is decreasing, and with your experiment design it should not be decreasing, then you are integrating a constant,...

8 years ago | 0

Answered
Highlight a Section of a Plot
Try this: t = linspace(350, 750); % Create Data y = sin(2*pi*t/200 + 2) .* ...

8 years ago | 0

| accepted

Answered
how can i formulate this fitness function ?
The function you want is <https://www.mathworks.com/help/gads/gamultiobj.html *|gamultiobj|*> (link). I am not certain what...

8 years ago | 0

| accepted

Answered
How do I get a matrix with its vector in reduced row-echelon form?
Use the matrix you described to solve the matrix equation. If you also want the inverse of *|‘A’|*, horizontally concatenat...

8 years ago | 0

Answered
Why my spectrogram have negative values?
Assuming he *|spectrogram|* function plots the _power spectral density_ (PSD) in decibels. The values are relative, not negativ...

8 years ago | 2

| accepted

Answered
Not displaying a 3 element vector as a result of my function? Any advice?
If you only ask for one output of a function that has more than one output, MATLAB will only return the first output. You have ...

8 years ago | 0

| accepted

Answered
How do I create a 3 dimensional surface from X Y Z points
Using the <https://www.mathworks.com/help/matlab/ref/griddata.html *|griddata|*> (link) function is an option: x = [422 ...

8 years ago | 15

Answered
How to keep an element fixed until it fits a condition?
The code you posted should do that. The outer *|‘ii’|* loop begins at *|1|*. The inner *|‘j’|* loop will iterate from *|4|...

8 years ago | 0

Answered
how to print E formated numbers.
Try this little utility anonymous function I wrote a while back to solve this exact problem: a = 0.1032E-02 expstr = @(...

8 years ago | 0

| accepted

Answered
How to graph using surf with an interval?
*|NaN|* is your friend here: <</matlabcentral/answers/uploaded_files/107714/How%20to%20graph%20using%20surf%20with%20an%20in...

8 years ago | 0

| accepted

Answered
how i can combine two arrays which are in same dimension
You cannot combine string and numeric arrays in a numeric array. You must use a cell array: date_01 = '09/01/2015 00:3...

8 years ago | 0

| accepted

Answered
Fill area between different curves
It’s necessary to create common *|(x,y)|* values for all the curves with interpolation. Then the solution is straightforward. ...

8 years ago | 1

| accepted

Answered
how do I get my answers into a vector
I am not certain what result you want. Try this slight variation on your code: a=1; %set code up to start counting at...

8 years ago | 0

| accepted

Answered
Error when using ODE45
What do actually want to do? If *|‘f’|* is a forcing function, incorporate it with *|‘t’|* as an _input_ to your differenti...

8 years ago | 0

| accepted

Answered
can i get the code for image compression using shearlet transform?
Try here: <http://shearlab.org/ *ShearLab*> (link)

8 years ago | 0

| accepted

Answered
How do I find the period or frequency of a signal?
I would first <https://www.mathworks.com/help/matlab/ref/detrend.html *|detrend|*> (link) your data, then use <https://www.mathw...

8 years ago | 1

| accepted

Answered
Nonlinear differential equation curve fitting to experimental data
There are several examples: * <http://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting#comment...

8 years ago | 1

| accepted

Answered
Separating a list of numbers by their first few digits?
Using the <https://www.mathworks.com/help/matlab/ref/discretize.html *|discretize|*> (link) function V = [3345 5543 3346 33...

8 years ago | 0

Answered
I keep getting unexpected matlab error in line 1
You are missing an equal *|(=)|* sign. Try this: function [xr ea iter] = falsepos(func, xl, xu, es, maxit)

8 years ago | 1

Answered
How to solve two coupled first order ODEs and use the solution (through curve fitting to experimental data) to optimize the parameters through fminsearch
That you mention <http://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting#comment_89455 *Monod kin...

8 years ago | 0

Answered
How to find sampling rate from a signal vector and a time vector?
I usually calculate the sampling interval as: Ts = mean(diff(t)); where *|‘t’|* is the time vector, assuming the sampli...

8 years ago | 2

Load more