% TST_CONST_WRITE is an example batch file for CONST_WRITE procedure % % E. Jovanov, UAHuntsville % September 2008 % Fs=200; % sampling frequency dt=1./Fs; % sampling period f=10; % 10 Hz sine wave t=dt:dt:1/f; % time s=500+500*sin(2*pi*f.*t); % sine wave plot(t,s,t,s,'ro'); % visual check const_write(s,'sin10Hz','s10Hz.txt'); % write to file type s10Hz.txt % check the file and use it as a C declaration