Generating Square wave in UIAxes
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to plot a Square Wave in the UIAxes of the Matlab App Designer. Please help me with this.
0 Commenti
Risposte (1)
Ameer Hamza
il 15 Ott 2020
If you have signal processing toolbox, you can use square() function to generate the waveform.
t = linspace(0, 5, 500);
y = square(t*2*pi);
If you don't have the toolbox then use
t = linspace(0, 5, 500);
y = mod(t, 1) > 0.5;
and then plot it on UIAxes object
plot(app.UIAxes, t, y)
0 Commenti
Vedere anche
Categorie
Scopri di più su Waveform Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!