How do I plot this as a unit step response

조회 수: 1 (최근 30일)
Nicolas Luciani
Nicolas Luciani 2021년 5월 20일
답변: Girijashankar Sahoo 2021년 5월 20일
C(t) = 0.5(1 - e^-2t)

채택된 답변

Star Strider
Star Strider 2021년 5월 20일
If you just want to plot it, the eassiest way is first to code it correctly, then use fplot.
syms t
C(t) = 0.5*(1 - exp(-2*t))
C(t) = 
figure
fplot(C, [0 5])
grid
xlabel('t')
ylabel('C(t)')
.

추가 답변 (1개)

Girijashankar Sahoo
Girijashankar Sahoo 2021년 5월 20일
plot([0:0.001:10],0.5*(1 - exp(-2*t)))

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by