Answered
how to do a line progression of line trend.
First, you cannot, because your *|‘X’|* vector is *|(1x4)|* and your *|‘Y’|* vector is *|(1x5)|*. Deleting the last element of ...

9 years ago | 1

| accepted

Answered
Chi-Squared Distribution Fitting
It doesn’t because fitting the chi-square distribution is generally not recommended. The chi-square distribution is used to de...

9 years ago | 1

Answered
I have problem with Undefined function I couldn't solve this problem
First, be sure the function name is spelled correctly. If it is, and you continue to get the error, download *|‘BEMFunction...

9 years ago | 0

Answered
Calculation of highest frequency of a signal?
The highest uniquely resolvable frequency in a sampled signal _is_ the Nyquist frequency, so *|75|* Hz for your *|Fs=150|* Hz si...

9 years ago | 0

| accepted

Answered
what is the role of CEIL?
The <https://www.mathworks.com/help/matlab/ref/ceil.html *|ceil|*> (link) function rounds toward *|+Inf|*. In the assignment yo...

9 years ago | 0

| accepted

Answered
Determining Average Heart Rate of ECG Signal
Use the *|findpeaks|* function to detect the *_R_*-waves and the _times_ they occurred. Then count the total number of *_R_*-wa...

9 years ago | 1

| accepted

Answered
2D Spatial interpolation between two matrices
See if the <https://www.mathworks.com/help/matlab/ref/interp2.html *|interp2|*> (link) function will do what you want.

9 years ago | 0

Answered
Error using .* Matrix dimensions must agree.
You may have to use the <https://www.mathworks.com/help/matlab/ref/bsxfun.html *|bsxfun|*> (link) function to make it work on bo...

9 years ago | 2

| accepted

Answered
Leg joints muscle resistance/impedance, stress and strain models
Search <http://www.ncbi.nlm.nih.gov/pubmed/ *PubMed*> (link). For example use <https://www.ncbi.nlm.nih.gov/pubmed/?term=%22...

9 years ago | 0

Answered
y''-y' y=sin(x) +exp(x)
They are different because *|odeToVectorField|* gives you an array you can pass to *|matlabFunction|* that will give you an anon...

9 years ago | 0

| accepted

Answered
A customized legend using LaTeX
I would put the LaTeX strings in the legend entries themselves, then define the interpreter in the *|set|* call. *_Example_...

9 years ago | 2

| accepted

Answered
How to use fft to find Fourier series coefficients
*_First_ —* I do not understand what you are doing in this assignment: Bk1x =1./length(xj).*fft(tmpvalues).*exp(-(2*pi*1i)...

9 years ago | 0

Answered
Regression for each category
If you have the Statistics and Machine Learning Toolbox, see the examples in the documentation for the <https://www.mathworks.co...

9 years ago | 0

Answered
Dimensions of matrices being concatenated are not consistent
I believe the problem is here: f=@(t, y)[... -0.001*y(1)*y(2); +0,001*y(1)*y(2) - 0.3*y(2)]; MATLAB will ...

9 years ago | 0

| accepted

Answered
How to arrange indices of matrix A by descending order ?
To get *|‘B’|*, ask for the second output from *|sort|*: A=[25,41,38]; [A_sorted,B] = sort(A, 'descend') A_sorte...

9 years ago | 0

| accepted

Answered
Optimization of 2 parameters in an ODE that is being solved using ode45 or ode15s using a 2 column set of experimental data [t, y] to fit.
If I remember correctly, <http://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting *Monod kinetics ...

9 years ago | 0

Answered
how can i plot this i'm pretty new to matlab sorry and thaks already
MATLAB is case-sensitive so *|‘x’|* is not the same as *|‘X’|*. You also need to use element-wise array (not matrix) operators ...

9 years ago | 0

| accepted

Answered
hi every one,
The only option I can think of is to search the File Exchange. (I have no idea if a Toolbox would allow you to do what you want...

9 years ago | 0

Answered
Setting up the fminunc function
*_‘My question is if the set up ... inside the fmincon function is the correct one.’_* As I read the documentation, yes, it...

9 years ago | 0

| accepted

Answered
How to generate a sawtooth wave
You only need to make *|2|* changes: T=2*4; Fs=1000; dt = 1/Fs; t = 0:dt:T-dt; x = sawtooth(2*pi*t); ...

9 years ago | 5

| accepted

Answered
Hi Guys, could you help me with this?
Your ‘circle’ looks like an ellipse. Assuming that is due to the aspect ratio of the plot, and it is actually a circle, and if ...

9 years ago | 0

Answered
How can I show the correation coefficient R in the figure plot?
Use a <https://www.mathworks.com/help/matlab/ref/text.html *|text|*> (link) object. Choose the *|(x,y)|* coordinates where you ...

9 years ago | 0

Answered
How to divide a 3D array into one dimensional cell array
Use the *|mat2cell|* function: M = randi(9, 3, 3, 2) % Create Matrix Msz = size(M); ...

9 years ago | 0

Answered
how can i turn a space caracters to commas
Since you do not have the *|pad|* or *|string|* functions, you will have to convert it to a character array if you want the comm...

9 years ago | 0

Answered
Mapping between two arrays wrt one column
Use *|‘B’|* to define the rows of *|‘A’|*: A=[1 10; 2 20; 3 30]; B=[3 1 2]'; Anew = A(B,:) Anew = ...

9 years ago | 0

| accepted

Answered
How can I get a matrix B of the indexes in a matrix A that satisfy the following —i representing index— A(i-1)>0 && A(i+1)<0?
*_‘Im ploting an oscillating graph, and would like to get indexes of rate of change closest to 0, in order to get the frequency....

9 years ago | 0

Answered
How can I have a video output in stead of a single image?
See if adding some sort of clock (such as <https://www.mathworks.com/help/simulink/slref/clock.html *Clock*> (link) or <https://...

9 years ago | 0

Answered
Hello! I need some help regarding a project
You have to declare *|‘k’|* and *|‘t’|* in your *|syms|* statement: syms k t S(t) = symsum(((-1)^k)*dirac(t-k*25), k, ...

9 years ago | 0

| accepted

Answered
Hello, does anybody know why matlab show this error for the line of "Kg(i)" ? error : Subscripted assignment dimension mismatch. (I appreciate if you help me.)
Your *|‘Kg’|* calculation creates a new *|(4x4)|* matrix in each iteration. Subscript it as: Kg(:,:,i) = A*E/L(i)*[c(i)^2...

9 years ago | 0

| accepted

Load more