How to plot the switching signal in matlab?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Akzeptierte Antwort
Bhaskar R
am 3 Nov. 2019
t=0:0.01:25; %time vector
width = 4; % train width
dela = width/2:width*2:25; % delays
pulse_vect=pulstran(t,dela,'rectpuls',width) + 1; % 1 is offset
% Plottig
figure, plot(t,pulse_vect, 'LineWidth', 2);
ylim([0, 2.5]), title('Not given')
xlabel('Time(s)'); ylabel('\sigma')
2 Kommentare
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!