How can I find a section of a graph?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I want to highlight a percentage of the maximum amplitude along the wave. What function will allow me to do this?
0 Commenti
Risposte (1)
Chunru
il 9 Set 2021
% plot the curve
t = 0:.1:5;
x = cos(2*pi*3*(t-2.5))./(1+(t-2.5).^2*2);
plot(t, x, 'b-');
% peak around 2.4-2.6
idx = find(t>2.4 & t<2.6);
hold on
plot(t(idx), x(idx), 'y-', 'LineWidth', 2)
0 Commenti
Vedere anche
Categorie
Scopri di più su Annotations 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!