Wednesday, October 29, 2008

octave




GNU Octave - Functions and Scripts
Waveforms
sawtooth wave in matlab
Reading data files into matlab
highlevel.m - Loading and saving data in matlab


%This file demonstrates the bahvior of LOAD and SAVE


clear all % Clear all variables
x = 5; x2 = 10; % Create x and x2
whos
pause
save xdata x % Save only x into xdata.mat
clear all % Clear all variables
load xdata % Load xdata.mat
whos % Note that x is back
pause
x2 = 10; % Recreate x2
whos
pause
save xdata x* % Now save using a wild card
clear all % Clear all variables
load xdata % Load xdata.mat
whos


MATLAB code for test tone synthesis, selection, and all-pass filtering