HOW TO CODE AND PLOT EQUATION
2 次查看(过去 30 天)
显示 更早的评论
I tried to code and plot this Midilli equation but it keep on saying “subscript indices must either be real positive integers or logicals”. I need to plot those decimals but i dont know how
a= 1.1143 k= 0.1791 n= 0.3215 b= 0.00321 t = 11 mins
MR = a•exp(-k(t^n))+b•t
回答(1 个)
Ameer Hamza
2020-12-7
You are missing multiplication operator between 'k' and t^n.
MR = a*exp(-k*(t^n))+b*t
5 个评论
Walter Roberson
2020-12-7
at the command line give the command
clearvars
and then run the code again
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!