Answered
How to implement Linear Discriminant Analysis in matlab for a multi class data?
Use the <https://www.mathworks.com/help/stats/classify.html *|classify|*> (link) function to do linear discriminant analysis in ...

8 years ago | 0

Answered
find parameters for differential equations for specific data
See: <https://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting *Monod kinetics and curve fitting*>...

8 years ago | 0

| accepted

Answered
MatLAB do not simplify (a^2)^(1/2) in symbolic ToolBox?
It does: syms phymi a = simplify((cos(phymi)^2)^(1/2), 'Steps',3000, 'IgnoreAnalyticConstraints',1) a = cos(...

8 years ago | 1

Answered
How can I try different input values to findpeaks while ignoring errors?
You’ve not shared your data, so I’m guessing here. The *|findpeaks|* function allows you to define the _independent_ variab...

8 years ago | 0

Answered
how to plot each row of the matrix
Try this: Single = sin((1:365)'*(1:39)*2*pi/3650); % Create Data figure(1) plot(Single') ...

8 years ago | 1

| accepted

Answered
The graph is not showing up even though the ODE solver is working...
First, I had to rearrange *|‘polyadiabatic’|* to get it to work, because in the version you posted, several statements were out ...

8 years ago | 0

| accepted

Answered
table2array error
The <https://www.mathworks.com/help/matlab/ref/table2cell.html *|table2cell|*> (link) function will convert your table to a cell...

8 years ago | 1

Answered
"Not Enough Input Arguments" Error
How are you calling your *|‘proprioDPrimeAnalysis’|* function? You _must_ call it with all the input arguments as: [p...

8 years ago | 0

| accepted

Answered
Replace the values of a matrix by another values.
This appears to do what you want: A = [750 360 500 ; 550 520 780 ; 150 350 270]; [~,Idx] = sort(A,2,'descend'); ...

8 years ago | 1

Answered
Matlab Symbolic Engine error
You will likely have to do what I recommended here: <https://www.mathworks.com/matlabcentral/answers/411888-matlab-2018a-faulty ...

8 years ago | 1

Answered
Replace elements in matrix based on indices stored in another matrix
I am not exactly certain what you want. Try this: a = [3:10, 17:21, 28]; b = [11:13, 22:24, 29:30]; c = [14:1...

8 years ago | 1

| accepted

Answered
my matlab program is showing this error Subscript indices must either be real positive integers or logicals what should i do below i have given my code
Since *|IC1|* is a scalar, I suspect that you do not want to subscript it anyway. I have no idea what you are doing, so I _assu...

8 years ago | 0

Answered
how would i use the fill command to fill in between these two matrices
To use *|fill|* (and its related functions), you need to outline the first curve, then _flip_ the second curve, providing a ‘clo...

8 years ago | 0

| accepted

Answered
How to create isocurves with given values in coordinates?
One approach: figure stem3(X, Y, Value) % Exploratory Plot To View Data grid on...

8 years ago | 0

| accepted

Answered
Quad function: Evaluate integral Problem
You need to do element-wise exponentiation (as well as division, that you already included) in the evaluation of *|‘myfunb’|*: ...

8 years ago | 1

| accepted

Answered
calculate FWHM and area of multiple peak
*_‘... it gives 1×0 empty double row vector.’_* That is most likely because the dependent variable vector (is this *|‘y’|* ...

8 years ago | 0

| accepted

Answered
How do I change the amount of places before a decimal when a number is printed in scientific notation? (i.e. 10e6 rather than 1e7)
Try this: a = 1000; n = 2; expstr = @(x,n) [x*10.^(-n*floor(log10(abs(x))/n)) n*floor(log10(abs(x))/n)]; Result ...

8 years ago | 1

Answered
Bounded Confidence Intervals from nlparci
The lower bounds of parameter confidence intervals indeed *_can_* be negative. Parameter confidence intervals *_that includ...

8 years ago | 0

Answered
Butterworth filtfilt and fft/ifft problem
First, you are specifying an order *|1|* filter, not an order *|4|* filter. Second, your unfiltered signal appears only to ...

8 years ago | 1

| accepted

Answered
What's the formula behind the coefficients calculation of the Filter Designer?
This is covered in all the signal processing texts I’ve ever used. A good discussion is given in <https://www.ece.uic.edu/~jmor...

8 years ago | 1

Answered
two stacked y labels on one single y axis
Insert some empty values between the two LaTeX strings to create spaces (this works with cell arrays): ytxt = {'$\displays...

8 years ago | 1

| accepted

Answered
Copy values by indexation
You only need to use simple indexing: A=[1 12; 2 14; 3 18; 4 25; 5 32]; B=[1;1;1;2;2;3;3;3;4;4;5;5;5;5]; B = [B ...

8 years ago | 0

| accepted

Answered
Is there the possibility to discretize data comparing them with a function?
Without your second matrix, it is necessary to create data to test code. It is necessary to ‘close’ the polygon created by ...

8 years ago | 0

| accepted

Answered
Plot teleseismic signal arrival
Plot ias you normally would, using the *|fill|* function, then rotate it using the *|view|* function: offset = 1:2:20; ...

8 years ago | 1

| accepted

Answered
How can I convert symbolic function into non symbolic function.
Use the *|matlabFunction|* function: syms A E B pre k normal_stress diff_A = diff(exp(-(pre/(exp(A)*exp(E./(k*(273.16+n...

8 years ago | 0

| accepted

Answered
Finding Explicit Solution to an Equation
This works for me in *|R2018a|*: ... CODE ... sol=solve(equation,x,'ReturnConditions',1); x = vpa(solve(sol.conditio...

8 years ago | 0

| accepted

Answered
Matlab 2018a faulty?
One possibility is that you need to update MATLAB. In the ‘Environment’ section of the top toolstrip, click on ‘Add-Ons’ —> ‘Ch...

8 years ago | 2

| accepted

Answered
Solving Equation Depending on Parameter
There appears to be one valid value for *|‘x’|*: x = 0.2014042781988740154717685102689 The reason is that although t...

8 years ago | 0

| accepted

Answered
Please any idea of how I can flip an arc?
Try this: a = linspace(0, pi/2); r = 1; x = r*cos(a); y = r*sin(a); figure subplot(2,1,1) plot(x, y)...

8 years ago | 0

| accepted

Answered
Plotting curved confidence intervals for linear regression
I did not see your post before. Use the appropriate version of the <https://www.mathworks.com/help/stats/compactlinearmodel...

8 years ago | 1

| accepted

Load more