|
From: | Doug Stewart |
Subject: | Re: Question About Plotting Trigonometric Functions |
Date: | Sun, 23 Dec 2007 22:08:29 -0500 |
User-agent: | Thunderbird 1.5.0.14 (Windows/20071210) |
Malstygian wrote:
You have asked for 6 points that are spaced apart by .1 of a second of a sine wave that osculates at 400 times a secondI would like to graph the following puretone sine wave: f = 400; t = 0:0.1:0.5; plot(t, sin(2*pi*f*t)) However, the plot this generated did not look correct as confirmed by plotting the same equation using my TI-83 graphing calculator. The picture of the result is shown below. What am I doing wrong? Thank youhttp://www.nabble.com/file/p14482857/sin_graph.png
you need more points over a shorter time period. the period of your sine wave is 1/400 of a second f=400t= 0 : (1/f)/20 : 1/f *5 this will give you 20 data points per sine wave for a total of 5 sine waves
[Prev in Thread] | Current Thread | [Next in Thread] |