Home Search Reference Manuals Return
#! /usr/bin/octave -qf # a sample Octave program # # Get the command line arguments # ampl=str2num (argv(1,:)); freq=str2num (argv(2,:)); time=str2num (argv(3,:)); # # Calculations # sin2= ampl * sin( 2*pi*freq * time ); # # Send the result back to GENSYS # printf ("%g\n", sin2); #