Can I pass filename to script called in shell?
Francesco Potorti`
Potorti at isti.cnr.it
Fri Feb 20 06:45:36 CST 2009
>I have a script file (run-psd.m), as follows...
>
> file = read(argv(){2});
> acc = dlmread(file);
> psd = autspec(acc,dt,win,raw);
> save -ascii psddata psd
What is "read"? I suppose you meant
file = argv(){2};
acc = dlmread(file);
psd = autspec(acc,dt,win,raw);
save -ascii psddata psd
But then, what is "autspec" and "psddata"?
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/
More information about the Help-octave
mailing list