Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How I can Plots this function
5 ビュー (過去 30 日間)
古いコメントを表示
how can write the code of this function

0 件のコメント
回答 (2 件)
Yasasvi Harish kumar
2019 年 2 月 16 日
Hey,
This should help you.
function x = question(t)
if t >=0
x = 3*exp(-2*t);
else
x = 0;
end
end
Regards
0 件のコメント
Star Strider
2019 年 2 月 16 日
Another approach:
x = @(t) 3*exp(-2*t) .* (t >= 0);
t = linspace(-10,10);
figure
plot(t, x(t))
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!