Answered
How can I plot this picture!!!?
plot([x, x, repmat([x-delta,x+delta,nan],1,9)], [0, 1,.1,.1,nan,.2,.2,nan,.3,.3,nan,.4,.4,nan,.5,.5,nan,.6,.6,nan,.7,.7,nan,.8,...

4 years ago | 0

Answered
the funcion of "load" might have mistakes while loading the hexadecmial number. The hexadecimal numbers start with "0x".
https://www.mathworks.com/help/matlab/ref/load.html#btm0etn-1-filename ASCII files must contain a rectangular table of number...

4 years ago | 0

| accepted

Answered
Unable to perform assignment because brace indexing is not supported for variables of this type.
data{iBlob, 1} = features.Centroid(2); data{iBlob, 2} = features.Centroid(1); data{iBlob, 3} = iBlob; data{iB...

4 years ago | 0

| accepted

Answered
Is exp() a Documented Function in the Symbolic Math Toolbox?
There is no doc for it. help sym/exp gives very brief help (nearly useless)

4 years ago | 0

Answered
where are the errors in my code? please help me!!
Your first solve() returns multiple roots. Your vpasolve() is then trying to process all of the roots at the same time . Remem...

4 years ago | 0

Answered
looping through multiple numbers
a_t(i) = A(A(:,2) > avsize(i),:);

4 years ago | 0

| accepted

Answered
collect coefficient of a symbolic variable in mathematical expression
Use coeffs() syms T m_q m_p x(t) z(t) x_dot(t) x_ddot(t) z_dot(t) alpha(t) z_ddot(t) alpha_dot(t) alpha_ddot(t) theta(t) theta...

4 years ago | 0

Answered
Why legend doesn't match plot
allOri = unique(ori); The size of that is not known ahead of time. You construct hPlot(li) elements over two separate loops th...

4 years ago | 0

Answered
How to determine coefficients by fit for multiple series of data?
x = [2,4,6,NaN,NaN; 2,4,6,8,10; 2,4,6,8,NaN]; y = [3,5,7,NaN,NaN; 4,8,11,25,32; 7,10,15,17,NaN]; D = [3;5;7]; N = size(x, 1);...

4 years ago | 0

Answered
Colour code to find how big a function is
f = (y-x)./(1+x.^2); then https://www.mathworks.com/matlabcentral/fileexchange/39972-colormapline-color-changing-2d-or-3d-lin...

4 years ago | 0

| accepted

Answered
Error using trapz (line 47) Dimension argument must be a positive integer scalar within indexing range.
syms x; Symbolic drivative = diff(A(i,1)*x^2+A(i,2)*x+A(i,3)); Symbolic because x is symbolic. Ty = sqrt(1+(drivative^2)); ...

4 years ago | 0

Answered
How can I lower to 0 the base of a window signal?
subtract min(signal) from signal

4 years ago | 0

Answered
Writing cells to text file without double quotes
fprintf(fid, "%s\n", YourCell{:})

4 years ago | 1

| accepted

Answered
indexing error, out of index error
size = []; size is now an empty variable ndata = size(xdata,1) You are trying to index the empty variable

4 years ago | 0

Answered
Is it possible to bin/discretize multidimensional matrices?
bins = discretize(TheMatrix, Vector_of_Breakpoints); It does not matter how many entries are in Vector_of_Breakpoints as long a...

4 years ago | 0

| accepted

Answered
Unrecognized function or variable 'gausswin'
eml_invariant is a function that would normally only be used during code generation. setdiff() and computer() do not contain any...

4 years ago | 0

Answered
what is eml_invariant function ?
eml_invariant is a function that would normally only be used during code generation. setdiff() and computer() do not contain any...

4 years ago | 0

Answered
Register COM Matlab Application TLB for certain version on when multiple versions installed
See https://www.mathworks.com/help/matlab/matlab_external/register-matlab-as-automation-server.html for R2020a and later.

4 years ago | 0

Answered
Why the function or variable A is not recognized?
You have not defined A in the base workspace, so it does not exist for you to be able to pass its value into the function.

4 years ago | 0

| accepted

Answered
How can I find "evaluateFit" function of matlab?
https://github.com/Hassan1503/MATLAB-UDF/blob/main/evaluateFit.m has the source code.

4 years ago | 0

| accepted

Answered
How to linear fit two y variables in same plot?
polyfit(x1, y1, 1)

4 years ago | 0

| accepted

Answered
Is it possible to use Matlab to get expressions for the coefficients in polynomial regression? (I.e., not just constant coefficients)
For each equation divide both sides by the highest negative coefficient, k4(Xhat)/Xhat^(-2) = a8*Xhat^(-2)/Xhat^(-2) + etc ...

4 years ago | 0

Answered
Arduino using matlab GUI, The current sensor gives a value without connecting anything.
That is expected for any input line that is not pulled high or pulled low.

4 years ago | 0

Answered
Writing fitness function in multi objective GA
mobj = @(x) [fun1(x); fun2(x) ]

4 years ago | 0

| accepted

Answered
i can't save my plot as a png
You are cd to a directory that you do not have write access to. In particular you might be cd to the matlab installation directo...

4 years ago | 0

| accepted

Answered
Getting - Matrix dimensions must agree, using surf
When you call surf(X, Y, Z) in your very old release, the number rows in Z must match the number of rows in Y and the number of ...

4 years ago | 0

Answered
Hello, our collaborator has installed Matlab Runtime v9.7, why he gets the error "Matlab.exe not found" ?
MATLAB Component Runtime is *only* used to execute programs compiled with MATLAB R2019b (and no other versions) . It is *not* MA...

4 years ago | 0

Answered
How can I change voxel size in a volume?
In order to keep the aspect ratio, all dimensions must be interpolated by the same factor, which would be max() of the requested...

4 years ago | 0

| accepted

Answered
Why do I receive 'not enough input arguments' in ode45
G=matlabFunction(subs(G,svars,vars),'Vars', {[q q_d]} ); C=matlabFunction(subs(C,svars,vars),'Vars', {[q q_d]} ); W=matlabFu...

4 years ago | 0

| accepted

Load more