M(t)=M(0) × e^(-t/T) + S × T × (1 - e^(-t/T)) How can I plot (T,M) graphic in MATLAB?
3 次查看(过去 30 天)
显示 更早的评论
M(t)=M(0) × e^(-t/T) + S × T × (1 - e^(-t/T)) How can I plot (T,M) graphic in MATLAB?
1 个评论
ANKUR KUMAR
2018-1-11
Which variables are the constants? t will vary with the every loop and T might be constant. What is the purpose of plotting T vs M.
采纳的回答
更多回答(2 个)
ANKUR KUMAR
2018-1-11
According to the equation written in the image,
clc
clear
m_zero=5;
S=25;
k=2;
for t=1:500
as(t)=m_zero*(exp(-k*t))+(S/k)*(1-exp(-k*t));
end
plot((1:500),as)
I have taken m_zero as constant (you can change as per your theory).
I have taken S and k also as a constant randomly. Fix your constant and go further.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!