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
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.

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

채택된 답변

FURKAN CEVAHIR
FURKAN CEVAHIR 2018년 1월 11일
편집: FURKAN CEVAHIR 2018년 1월 11일
Actually, I want to catch the graphic just like that is in the photo attached. FYI:(T=1/k)

추가 답변 (2개)

ANKUR KUMAR
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.

FURKAN CEVAHIR
FURKAN CEVAHIR 2018년 1월 11일
What do you think, Without constants as parameters in the graphic, how was the graphic in the picture plotted? Thanks.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by