MacOS-X 10.6.3 requires file to be in root

Gary Nelson gnelson at quantasonics.com
Tue May 4 21:27:32 CEST 2010


I am encountering a perplexing issue regarding locations of certain files.  In order to use loadwave() I have to put the target file in the root director. All the other file operators
seem to work as expected, but loadwave seems to require target to be in root directory.

This works:

file="/WavefunctionProject/VanaquaShorterAFTOS"
save(file,aftos);

from console

clear aftos
aftos
...get undefined variable error
load(file,aftos)
aftos

...shows the data correctly

Above works and clearly proves that the matrix aftos is written out and then read back and it does not have to be in the root directory

However

this does not work

file1="/WavefunctionProject/VanaquaShorter.wav"
[porp1,yze]=loadwave(file1); 

generates this--
!--error 10000 
loadwave: Cannot open file /VanaquaShorter.wav.
at line      22 of function loadwave called by :  
[porp1,yze]=loadwave(file1); 
at line     124 of exec file called by :    
exec('/WavefunctionProject/ Scilab PC/testOctvGen.sce', -1)

But this does work

file1="/VanaquaShorter.wav"
[porp1,yze]=loadwave(file1); 

I can't see what I am doing wrong. Can you help?

Gary Nelson
gnelson at quantasonics.com






More information about the users mailing list