plot a inear sweep & stepped sweep
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I am try to plot a linear sweep & stepped sweep. (The attached picture)
condition:
Freauency range from 20Hz-20kHz
Time from 0-100ms
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1423633/image.jpeg)
How the code can do it ? Tnanks!
Réponses (1)
KALYAN ACHARJYA
le 2 Juil 2023
Modifié(e) : KALYAN ACHARJYA
le 2 Juil 2023
t=0:8:100;
f=linspace(20,2000,length(t));
stairs(t,f);
xlabel('Time');
ylabel('Frequency');
hold on
plot(0:100,linspace(20,2000,101))
hold off
If the use of the inbuilt stair function is not allowed, modify the code according to the requirements, finding alternative methods such as the step function or other approaches can be done.
2 commentaires
Voir également
Catégories
En savoir plus sur Simulation, Tuning, and Visualization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!