exponential function remove the error of division

3 ビュー (過去 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 Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by