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

 Réponse acceptée

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])

Plus de réponses (0)

Catégories

En savoir plus sur Embedded Coder dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by