Info
This question is closed. Reopen it to edit or answer.
Plot the trapeoidal waveform using given equations
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Vladimir Sovkov
on 3 Mar 2020
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 Comments
Vladimir Sovkov
on 3 Mar 2020
I am not much experienced in Simulink but I think that the overall programming linguistic does not differ very much.
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!