Plot the trapeoidal waveform using given equations
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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π
Réponses (1)
Vladimir Sovkov
le 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 commentaires
Mantavya Vashistha
le 3 Mar 2020
Vladimir Sovkov
le 3 Mar 2020
I am not much experienced in Simulink but I think that the overall programming linguistic does not differ very much.
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!