Info
此问题已关闭。 请重新打开它进行编辑或回答。
Plot the trapeoidal waveform using given equations
1 次查看(过去 30 天)
显示 更早的评论
F(θe)
1 0 ≤ θe < 2π/3
1− 6/π(θe − 2π 3 ) 2π/3 ≤ θe < π
−1 π ≤ θe < 5π/3
−1 + 6/π(θe − 5π 3 ) 5π/3 ≤ θe < 2π
0 个评论
回答(1 个)
Vladimir Sovkov
2020-3-3
syms theta
y=piecewise(...
0<=theta<2*pi/3,1,...
2*pi/3<=theta<pi,(1-6/pi*(theta-2*pi/3)),...
pi<=theta<5*pi/3,-1,...
5*pi/3<=theta<2*pi,(-1+6/pi*(theta-5*pi/3))...
);
fplot(y,[0 2*pi]);
2 个评论
Vladimir Sovkov
2020-3-3
I am not much experienced in Simulink but I think that the overall programming linguistic does not differ very much.
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!