How do I plot this as a unit step response

1 visualización (últimos 30 días)
Nicolas Luciani
Nicolas Luciani el 20 de Mayo de 2021
Respondida: Girijashankar Sahoo el 20 de Mayo de 2021
C(t) = 0.5(1 - e^-2t)

Respuesta aceptada

Star Strider
Star Strider el 20 de Mayo de 2021
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)')
.

Más respuestas (1)

Girijashankar Sahoo
Girijashankar Sahoo el 20 de Mayo de 2021
plot([0:0.001:10],0.5*(1 - exp(-2*t)))

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by