Create the Sinusoidal Graph or Drawing in Matlab (all versions)

Next I will explain this stage - to create the sinusoidal graph or drawing in Matlab (all versions):

1.if frequency of 1 Hz for 1 second, the first variable t we prepare it:

>> T = 0:1;

Enter continually variable f (frequency it)

>> F = 1;

2. After frequency (f) and t (time) has been entered and then calculates its sinusoidal, in theory, if ω (omega) = 2πf, then in matlab into omega = 2 * pi * f. using the plot function is used to display images on two-dimensional matalab. As below.

>> T = 0:1;
>> F = 1;
>> Y = sin (2 * pi * f * t);
>> Plot (t, y);

The results ....




Wew, graphics are still not at the top of the sinusoid because of the variable time (t) only numbers 0 & 1, so y 2 at the point 0 & 1 that ... so that sinusoidal or wave-shaped graph it. a distance data between 0.02 = 1 / 50 (fiftieth) ...

>> T = 0:0.02:1;
>> F = 1;
>> Y = sin (2 * pi * f * t);
>> Plot (t, y);

The result ... ..



graph above can be said sinusoidal.

3. Now try to change in its frequency to 2 Hz and see the changes that occur after the plot

>> T = 0:0.02:1; >> F = 2; >> Y = sin (2 * pi * f * t); >> Plot (t, y);


From the image above that there are 2 waves in 1 second.
(in one wave (cyle) there is a peak of 1 and 1 valley).

4. Can now change the frequency of 15 Hz and its distance is 0.01 = 1 / 100 (seperseratus)

>> T = 0:0.01:1;
>> F = 10;
>> Y = sin (2 * pi * f * t);
>> Plot (t, y);





like's the graphics are still not mulus ne, is still quite broken-broken. Why?
Because according to the theorems' Nyquist 'frequency of use should pencuplikan at least 2-fold minmal or 20 Hz.

4. But what is the distance we lower eg 0001 = 1 / 1000, with a fixed frequency then ..............

>> T = 0:0.001:1;
>> F = 10;
>> Y = sin (2 * pi * f * t);
>> Plot (t, y);

the conclusion:

• Use of omega ω = 2 * pi * frequency * time. As a parameter in making 2-dimensional sinusoidal graph.
• Use the distance between the data at least 1 / 2 of the period (Nyquist Theorem).
• The small distance between the data, with the same period of time, the greater the amount of data ...

http:www.mathworks.com
http:www.agfi.staff.ugm.ac.id

Komentar

Postingan populer dari blog ini

VOTE KOMODO TO SAVE THE WORLD (Commit to Conservation)

All About One Piece Download