echo command and functions

Praedor Atrebates praedor at yahoo.com
Fri May 30 13:28:05 CDT 2008


I have tried using "echo" to get octave to display what it is reading and what 
it is doing while it runs a simple matlab program:

octave:4> run Image_preparation_withoutlandremove
+ % Rawdata read-in program.
+ % The parameter 1: the pitch length;
+ % The parameter 2: start position;
+ % The parameter 3: number of tracks;
+ % The parameter 4: The forth is pixel number for one period of scan;
+ % The parameter 5: The path to the folder keeping rawdata
+
+ % ILscan1 = Getting_RawData_single_channel(0.015,-42,2400,12500,'C:
\Data\Patrick\custom1038-2155\scan1\');
+  ILscan2 = 
Getting_RawData_single_channel(0.015,0,2800,12500,'/home/praedor/smb4k/bind222-ml/Data/Patrick/custom1038-2172/scan2/');
error: fscanf: invalid stream number = -1
error: called from `Getting_RawData_single_channel' in 
file /home/praedor/Documents/BioCD/custom1038-2172-4-08/Getting_RawData_single_channel.m 
near line 39, column 10

So echo is only spitting out information on the program called 
Image_preparation_withoutlandremove but the error I am trying to 
analyze/figure out is in the function "Getting_RawData_single_channel.m" 
which is called within the Image_preparation program.  Is there some way to 
get echo or any other command to spit out the details of what it is doing as 
it enters "Getting_RawData" rather than only what it is doing within the 
calling program "Image_preparation"?

I have also been playing with various debug commands but it doesn't appear to 
give me the information I seek.

praedor
-- 
"As democracy is perfected, the office of president represents, more and more 
closely, the inner soul of the people. On some great and glorious day the 
plain folks of the land will reach their heart's desire at last and the White 
House will be adorned by a downright moron."
--H.L. Mencken
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080530/8e2b1d9e/attachment.bin 


More information about the Help-octave mailing list