Simple code Error PLease help me

조회 수: 4 (최근 30일)
Kunju t
Kunju t 2021년 4월 6일
편집: Kunju t 2021년 4월 6일
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일
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개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by