Info
此问题已关闭。 请重新打开它进行编辑或回答。
How I can Plots this function
3 次查看(过去 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!