Plotting sine wave valley to valley
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Caitlin Bemis
am 11 Aug. 2022
Beantwortet: Star Strider
am 11 Aug. 2022
Hello,
I am looking to create a sine wave that I can change the amount of time (or frequency) that the duration is and so that it does not start at 0. That way the line goes from valley to valley instead of mid length to mid length. Hopefully that makes sense.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 11 Aug. 2022
Perhaps something like this —
t = linspace(0, 1, 250);
freq = 5;
s = sin(2*pi*t*freq + 3*pi/2);
figure
plot(t,s)
grid
Make appropriate changes to get the result you want.
.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu AI for Signals finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!