exponential function remove the error of division

조회 수: 1 (최근 30일)
abdul rehman
abdul rehman 2021년 5월 6일
댓글: KSSV 2021년 5월 6일
help me to remove this error
X1=30;
Y1=20;
X = 0:150;
Y = Y1*exp(30/(X.^0.5));
plot(X,Y)
Error using /
Matrix dimensions must agree.

답변 (1개)

KSSV
KSSV 2021년 5월 6일
X1=30;
Y1=20;
X = 0:150;
Y = Y1*exp(30./(X.^0.5));
plot(X,Y)
Use element by element division.... ./
  댓글 수: 2
abdul rehman
abdul rehman 2021년 5월 6일
thank you so much
KSSV
KSSV 2021년 5월 6일
Thanks is accepting/ voting the answer. :)

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by