problem in writing matlab code (To Plot)
显示 更早的评论
I want plot the function A versus x, can't write the program for the following algorithm.
A= K for x <= 0; K is a constant
A= K/2 (1+cos x) for 0<x<50;
A= 0 for x >= 50
i have used the if elseif else end statement, but not not succeed.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!