I need help using for and if for plotting a function.
显示 更早的评论
clc
clear
for e= 0:0.02/1071:0.02
if (e<0.01)
s(e)=100*e
elseif (e>0.01)
s(e)=75.3*e
end
end
plot(e,s)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Visualization and Interpretability 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!