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

 採用された回答

Cris LaPierre
Cris LaPierre 2021 年 4 月 6 日

0 投票

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

1 件のコメント

Kunju t
Kunju t 2021 年 4 月 6 日
編集済み: Kunju t 2021 年 4 月 6 日
thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2021 年 4 月 6 日

編集済み:

2021 年 4 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by