Compare the graphs of 𝐬𝐢𝐧 𝒕 and 𝐜𝐨𝐬 𝒕 on the same plot, where the time 𝑡 starts from 0 and ends at 4π, with an increment of T/100.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Compare the graphs of 𝐬𝐢𝐧 𝒕 and 𝐜𝐨𝐬 𝒕 on the same plot, where the time 𝑡 starts from 0 and ends at 4π, with an increment of T/100.
2 Kommentare
Dyuman Joshi
am 23 Okt. 2023
This looks like awfully like a homework assignment, please show us what you have attempted yet.
Sam Chak
am 23 Okt. 2023
Not exactly sure what aspect you are trying to compare the sine and cosine waves. Maybe the phase?
%% Two sinusoids on the same plot
Antworten (1)
Sulaymon Eshkabilov
am 23 Okt. 2023
You can use a few different MATLAB built-in fcns to get this exercise done, such as, colon ":" operator, plot(), hold, legend(), xlabel, ylabel, etc.
t = tmin:increment:tmax;
F1 = sin(t);
F2 = cos(t);
plot(t, F1, 'r-')
hold on
...
xlabel...
legend(..., ..., 'location', 'best')
hold off
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!