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 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
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
Dyuman Joshi
2023๋
10์ 23์ผ
This looks like awfully like a homework assignment, please show us what you have attempted yet.
Sam Chak
2023๋
10์ 23์ผ
Not exactly sure what aspect you are trying to compare the sine and cosine waves. Maybe the phase?
%% Two sinusoids on the same plot
๋ต๋ณ (1๊ฐ)
Sulaymon Eshkabilov
2023๋
10์ 23์ผ
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
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ 2-D and 3-D Plots์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!