how do i plot y=6sin(t+0.5) and y=5 between 0 and 20 in steps of 0.001
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Risposte (1)
Aditya Srikar
il 28 Apr 2023
Hi Zack
The following code will display the plot as required
x= 0 : 0.001 : 20;
y= 6*sin(x+0.5);
plot(x, y, 'green')
hold on
yline(5, 'red')
grid
xlabel('x units')
ylabel('y units')
hold off
Hope it helps !
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!