ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ
ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ

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์ผ)
Lana
Lana 2023๋…„ 10์›” 23์ผ
๋‹ต๋ณ€: Sulaymon Eshkabilov 2023๋…„ 10์›” 23์ผ
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
Dyuman Joshi 2023๋…„ 10์›” 23์ผ
This looks like awfully like a homework assignment, please show us what you have attempted yet.
Sam Chak
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
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

์นดํ…Œ๊ณ ๋ฆฌ

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!

Translated by