Plot the trapeoidal waveform using given equations
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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 件のコメント
Mantavya Vashistha
2020 年 3 月 3 日
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!