January 10th, 2013, 03:17 AM
Sine wave plotted in file
represent a sine
wave with a period of 20ms.
this has to be representet in numbers, plottet into a file, and it has to be in a function sine(), but most of all i need help how to generate the numbers for the sine signal? :P
January 10th, 2013, 05:47 AM
#vary parameters to get the amplitude/wavelength you want.
#print l to file
January 16th, 2013, 04:37 AM
it somewhat helps, but i cant really figure out how to implement it, i want to be able to yield one number at the time and plot it into a file, where every line in the file is a ms in time
Originally Posted by verstapp
January 16th, 2013, 09:59 AM
You could replace
then run python on the command line redirect stdout to a file. Yes, it ought to work in DOS.
shell_prompt> python my_program.py > sinusoid.dat
[/code] are essential for python code and Makefiles!
January 29th, 2013, 10:50 PM
Is there a relationship between x in sine(x) and time?
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25