exponential function remove the error of division
2 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
KSSV
on 6 May 2021
X1=30;
Y1=20;
X = 0:150;
Y = Y1*exp(30./(X.^0.5));
plot(X,Y)
Use element by element division.... ./
2 Comments
See Also
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!