Here are a few tips for playing with waves in Excel,
This was a post I found while looking for excel graphics to cover this topic, it actually states how to create sine waves very well....
"
If you got excel, and know how to use it a bit for graphing, then you can definitely try that. It's not too bad at all.
What you can do is to generate a whole bunch of numbers in column A .....these will be for your angles. Maybe in column A, you might want the angles in degrees. Like make a column that has numbers that starts from zero, and goes up by increments of 0.2 degrees.
So you do this by putting 0 in cell A1, 0.2 in cell A2, 0.4 in cell A3 .... you could keep going, but there's no need. Then you can use the trick of highlighting cells A1, A2, and A3. And when they're highlighted, let go of the mouse button, and then put the mouse cursor on the bottom-right hand side of the highlighted part......put it exactly at the right-hand bottom corner of the highlighted block. The cursor will change into a black PLUS sign. Then push down the left mouse button and keep it pushed in. Then scroll the mouse downwards until the column numbers themselves start scrolling and building up. After a while, the scrolling columns will start getting some momentum and pick up speed. The further down you scroll your mouse, the faster the the column will scroll! And if you let go of the mouse button, a big column of numbers will be generated ....spaced at intervals of 0.2
If you generate numbers up to row number 4001, then the highest value we'll get is 800 degrees.
Then, for column B, you'll need to convert the column A values to RADIANS ....this is because excel's SIN function needs the angle to be in radians. So just use the equation: angle in radians = angle in degrees * 2 * PI / 360
So cell B1 should be: =SUM( A1 * 2 * pi() / 360 )
and cell B2 should be: =SUM(A2 * 2 * pi() /360 )
etc.
And then you can generate the results of the SIN function in column C.
So cell C1 should be: =SIN(B1)
cell C2 should be: =SIN(B2)
etc
Then once you're done, you simply hold down the CTRL key and keep it held down, then use the mouse to click on the 'A' at the top of column A, and while not letting go of the CTRL key, you can click on the 'C' at the top of column C. This will highlight column A and C.
Then go to the menu to find 'INSERT' .... so you can insert a CHART. Select 'XY SCATTER'....and bob's your uncle. The units for the x-axis will be 'degrees'.
If you want to add another plot....like y = 3*SIN(x), then you can use column D.....
cell D1 will be: =3*SIN(A1)
cell D2 will be: =3*SIN(A2)
etc.
You can delete the first graph. Then just use the same procedure as before...but this time, hold down the CTRL key, and click on the 'A' at the top of column A, click on the 'C', and click on the 'D'. So you get column A, C, and D highlighted. Then just INSERT -> CHART -> XY-SCATTER ...... and then you get two plots on the one graph.
If you don't want the legend to say 'series 1 etc', you can change the names of the series by right-clicking on the graph....and a menu box comes out....and you can select 'source data' to give new names for the series. Would have been more intuitive to change the series names by right-clicking on the legend itself though.....but excel doesn't work like that."
I would like to add, that you do not need to do the radians equation to convert, excel has a function to do this
type in "=radians(angle in degrees)"
and you will skip the 2*pi/360 equation
I tried to enter a spread sheet in the attachments, however it does not recognize excel spreadsheets, If you want I can send anyone interested an email containing this spreadsheet.
This was a post I found while looking for excel graphics to cover this topic, it actually states how to create sine waves very well....
"
If you got excel, and know how to use it a bit for graphing, then you can definitely try that. It's not too bad at all.
What you can do is to generate a whole bunch of numbers in column A .....these will be for your angles. Maybe in column A, you might want the angles in degrees. Like make a column that has numbers that starts from zero, and goes up by increments of 0.2 degrees.
So you do this by putting 0 in cell A1, 0.2 in cell A2, 0.4 in cell A3 .... you could keep going, but there's no need. Then you can use the trick of highlighting cells A1, A2, and A3. And when they're highlighted, let go of the mouse button, and then put the mouse cursor on the bottom-right hand side of the highlighted part......put it exactly at the right-hand bottom corner of the highlighted block. The cursor will change into a black PLUS sign. Then push down the left mouse button and keep it pushed in. Then scroll the mouse downwards until the column numbers themselves start scrolling and building up. After a while, the scrolling columns will start getting some momentum and pick up speed. The further down you scroll your mouse, the faster the the column will scroll! And if you let go of the mouse button, a big column of numbers will be generated ....spaced at intervals of 0.2
If you generate numbers up to row number 4001, then the highest value we'll get is 800 degrees.
Then, for column B, you'll need to convert the column A values to RADIANS ....this is because excel's SIN function needs the angle to be in radians. So just use the equation: angle in radians = angle in degrees * 2 * PI / 360
So cell B1 should be: =SUM( A1 * 2 * pi() / 360 )
and cell B2 should be: =SUM(A2 * 2 * pi() /360 )
etc.
And then you can generate the results of the SIN function in column C.
So cell C1 should be: =SIN(B1)
cell C2 should be: =SIN(B2)
etc
Then once you're done, you simply hold down the CTRL key and keep it held down, then use the mouse to click on the 'A' at the top of column A, and while not letting go of the CTRL key, you can click on the 'C' at the top of column C. This will highlight column A and C.
Then go to the menu to find 'INSERT' .... so you can insert a CHART. Select 'XY SCATTER'....and bob's your uncle. The units for the x-axis will be 'degrees'.
If you want to add another plot....like y = 3*SIN(x), then you can use column D.....
cell D1 will be: =3*SIN(A1)
cell D2 will be: =3*SIN(A2)
etc.
You can delete the first graph. Then just use the same procedure as before...but this time, hold down the CTRL key, and click on the 'A' at the top of column A, click on the 'C', and click on the 'D'. So you get column A, C, and D highlighted. Then just INSERT -> CHART -> XY-SCATTER ...... and then you get two plots on the one graph.
If you don't want the legend to say 'series 1 etc', you can change the names of the series by right-clicking on the graph....and a menu box comes out....and you can select 'source data' to give new names for the series. Would have been more intuitive to change the series names by right-clicking on the legend itself though.....but excel doesn't work like that."
I would like to add, that you do not need to do the radians equation to convert, excel has a function to do this
type in "=radians(angle in degrees)"
and you will skip the 2*pi/360 equation
I tried to enter a spread sheet in the attachments, however it does not recognize excel spreadsheets, If you want I can send anyone interested an email containing this spreadsheet.
Comment