Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How I can Plots this function

6 visualizaciones (últimos 30 días)
Mohamed  Hussein
Mohamed Hussein el 16 de Feb. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
how can write the code of this function

Respuestas (2)

Yasasvi Harish kumar
Yasasvi Harish kumar el 16 de Feb. de 2019
Hey,
This should help you.
function x = question(t)
if t >=0
x = 3*exp(-2*t);
else
x = 0;
end
end
Regards

Star Strider
Star Strider el 16 de Feb. de 2019
Another approach:
x = @(t) 3*exp(-2*t) .* (t >= 0);
t = linspace(-10,10);
figure
plot(t, x(t))

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by