MATLAB Answers

Plot the trapeoidal waveform using given equations

1 view (last 30 days)
Mantavya Vashistha
Mantavya Vashistha on 3 Mar 2020
Commented: Vladimir Sovkov on 3 Mar 2020
F(θe)
1 0 ≤ θe < 2π/3
16/π(θe 2π 3 ) 2π/3 ≤ θe < π
1 π ≤ θe < 5π/3
1 + 6/π(θe 5π 3 ) 5π/3 ≤ θe < 2π

  0 Comments

Sign in to comment.

Answers (1)

Vladimir Sovkov
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

Mantavya Vashistha
Mantavya Vashistha on 3 Mar 2020
thank you very much
can you help me to implement this waveform on generating back emf tapezoidal waveform on simulink
I have been made a simulink model to calculate wm
I have to find ea,eb and ec
Vladimir Sovkov
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.

Sign in to comment.

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!