Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How I can Plots this function
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how can write the code of this function

0 Kommentare
Antworten (2)
Yasasvi Harish kumar
am 16 Feb. 2019
Hey,
This should help you.
function x = question(t)
if t >=0
x = 3*exp(-2*t);
else
x = 0;
end
end
Regards
0 Kommentare
Star Strider
am 16 Feb. 2019
Another approach:
x = @(t) 3*exp(-2*t) .* (t >= 0);
t = linspace(-10,10);
figure
plot(t, x(t))
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!