MATLAB Answers
请先登录,再回答此问题。
您正在关注此问题
发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
0 个投票
分享此问题的链接
https://ww2.mathworks.cn/matlabcentral/answers/427238-how-to-plot-this-function
请先登录,再进行评论。
分享此回答的链接
https://ww2.mathworks.cn/matlabcentral/answers/427238-how-to-plot-this-function#answer_344451
Here is one way:
U = @(t) -(t<pi/2).*t + (t>=pi/2) * 0; % Don't really need that second term, since it is always zero
figure tt = 0:0.01:pi; plot(tt,U(tt),'.')
分享此评论的链接
https://ww2.mathworks.cn/matlabcentral/answers/427238-how-to-plot-this-function#comment_630880
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
提问:
评论:
已采纳:
Find the treasures in MATLAB Central and discover how the community can help you!
Translated by
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处