Simple code Error PLease help me

f=@(x) 50*x*10^(-6)-1/(15*x*10^-3)-11/360;
fplot(f,[1000 1600])
the above is the code
the errors is
error: operator -: nonconformant arguments (op1 is 8x5, op2 is 8x8)
error: called from
fplot at line 204 column 9

 Risposta accettata

Use an elementwise operator when dividing by an array.
f=@(x) 50*x*1e-6-1./(15*x*10^-3)-11/360;
% ^^
fplot(f,[1000 1600])

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by