Answered
Undefined function or variable 'currentFigure'. Error in matlab.graphics.internal.newplotwrapper (line 14) if isempty(currentFigure)
see <https://www.mathworks.com/matlabcentral/answers/263788-how-to-detect-if-a-figure-exist#answer_206155> similar case g...

8 years ago | 0

| accepted

Answered
Keep getting this error and I cannot figure out why: Dimensions of arrays being concatenated are not consistent.
*EDITED* m = 15; b = 0.2; k = 2; ut = linspace(0, 10); u = 5 * sin(2 * ut) + 10.5; % input of our system - ext...

8 years ago | 0

| accepted

Answered
too many input argument
im = rand(1,10) F=feature1(im) %calling of function function F=feature1(im) im=double(im); m=mean(mean(im)); ...

8 years ago | 0

Answered
find matching values from two unequal size arrays
[ia,c,ib]=ismember(lat1,lat2)

8 years ago | 0

Answered
illogical plotting and results in delayed function
f1 = 2; f2 = 3; t=linspace(0,1,1000) x=cos(2.*pi.*f1.*t) x1=cos(2.*pi.*f2.*(t-10)) subplot(2,1,1); plot(t,x)...

8 years ago | 0

Answered
Fourier transformed signal doesn't show up in ezplot
t=0:0.1:1000; f1 = 2; f2 = 3; x =cos(2*pi*f1.*t) + sin(2*pi*f2.*t); X=abs(fft(x))/numel(t); plot(t,X);

8 years ago | 0

| accepted

Answered
How to make 2 histograms in one plot, containing large data
see <https://www.mathworks.com/matlabcentral/answers/102019-is-there-a-way-to-add-multiple-histograms-to-the-same-plot-similar-t...

8 years ago | 0

Answered
How to I create an Array of Operations?
var_array = {'a' 'b' 'c' 'd'}; %edited after sir Walter's comment r = randi([1 4],1) var_array_opt = var_array{r} ...

8 years ago | 1

Answered
how to do ?
x=1:10; y=11:20; matrix=rand(3); disp(matrix(1:2,:))

8 years ago | 0

Answered
how can i solve
if w > y w = x*y else end

8 years ago | 0

Answered
Function problem. Where is wrong in my function and how can I add table headers.
*EDITED* t=0:10:100; [d,v]=dista(t); ttt=table(t',d',v') ttt.Properties.VariableNames= {'t','d','v'}; writetable(ttt,'l...

8 years ago | 0

Answered
How to change the options in the figure of z-axis?
function main %Set initial values for r, theta, z r00 = 10; theta00 = 0; z00 = 1.0; y0 = [r00 theta00 z00]; ...

8 years ago | 0

| accepted

Answered
I can't update may license
*You have a license that does not include access to MATLAB Online* As it clearly states that the license which you have doe...

8 years ago | 0

Answered
Logical False before subs then Logical True?
You can’t prove two symbolic equations which are in different form that are equal (matlab won’t recognise), the last thing whic...

8 years ago | 0

| accepted

Answered
I am Getting the error as INDEX EXCEED THE ARRAY BOUNDS in this and i think my loop is also not working. i need to solve this using fmincon
x=1:5 %fake data t=time1(x) %function call function t=time1(x); a={zeros(5)}; m=zeros(5); v=zeros(5...

8 years ago | 0

Answered
how to keep the scale on the axis the same on a graph?
axis equal

8 years ago | 1

| accepted

Answered
error message undefined function or variable ‘integral’ .
It’s *integral* not *'integral'* no strings around

8 years ago | 0

| accepted

Answered
'Reference to non-existent field'
it means your mat file doesn't contain a

8 years ago | 0

| accepted

Answered
Why is XLSread dividing my numbers by 10000?
format longG %at the beginning of the script file

8 years ago | 2

| accepted

Answered
Where is the zero?
a=[ 1 3 5 6 34 4 0 1 3 4 50] index=find(a==0)

8 years ago | 1

| accepted

Answered
Subscripted assignment dimension mismatch.
newmatrix=cell(1,6031); %before loop newmatrix{i} %inside loop celldisp(newmatrix) %after loop

8 years ago | 0

| accepted

Answered
How can i solve Partial differential equation?
<https://www.mathworks.com/matlabcentral/answers/428442-how-can-i-solve-this-partial-derivatives#answer_345595>

8 years ago | 0

| accepted

Answered
Plot 3D matrix
load matlab.mat [X3,Y3] = meshgrid((-4.5:0.1:4.5),(-4.5:0.1:4.5)); for i = 1:81 figure() surf(X3,Y3,d(:,:,i)) %likewi...

8 years ago | 0

| accepted

Answered
Implicit function 2D plot
see <https://www.mathworks.com/help/matlab/ref/fimplicit.html *fimplicit()*>, <https://www.mathworks.com/help/matlab/ref/fplo...

8 years ago | 0

Answered
problem in str2num
X = str2num( '12e-3 5.9e-3 -8.1e-3 2.56e-3; 5 11.2 17.9 33' ) %edited after kssv's comment

8 years ago | 0

| accepted

Answered
Speed up for loops for arrays
a=7811200001; d=1083355908; c=a+(1:d); c=(a+1):(a+d); %edited after jan's comment

8 years ago | 0

| accepted

Answered
if x is a function of y and y itself is a function of x, then how to write command for such program?
x=@(y) str2sym('4*y') x(y) %x is a function of y y=@(x) str2sym('x/4') y(x) %y is a function of x

8 years ago | 0

Answered
I have attached my problem please write its matlab command.
f = @(delv) str2sym('(sqrt(2.*q.*Nsub./Csi.*(delv+vt.*(ni./Nsub).^2.*(exp(delv./vt)-1))+(vt.*(exp(-delv./vt)-1))))'); d...

8 years ago | 0

Answered
What does Undefined operator '*' for input arguments of type 'table' mean
v=(0.7*A.Vc):(0.001*A.Vc):(20*A.Vc)

8 years ago | 2

Answered
How can I plot two different datetime vectors in the same graph?
Or try yyaxis right plot(time1, V) yyaxis left plot(time2, R) See <https://www.mathworks.com/matlabce...

8 years ago | 0

Load more