Prev: Automatic Character deletion within string after detecting a special character
Next: Image compression
From: Lana Swisher on 9 Jul 2010 22:29 Hi, I'm a newbie in Matlab and desperetly need a help! I have .m file with a function cluster(arg1, arg2, arg3) When I run it in Matlab it runs just fine. Then I run .sh file from the terminal with the following lines: #!/bin/bash .... export CODEBASE=/home/user/Project ..... echo "path(path, '$CODEBASE') $CODEBASE/cluster('/home/user/Project/arg1', '/home/user/Project/arg2', '/home/user/Project/arg3');" > script1.m /home/user/Mathworks_2008a/bin/matlab -nodesktop -nosplash < script1.m Program runs, then it opens Matlab and after this it returns the following error: >> ??? Error using ==> home Too many output arguments. Any suggestions? Will appreciate any help!
From: Lana Swisher on 9 Jul 2010 23:36 Please, I need help! I tried nargout(cluster), but it didn't work. Seems that the error "Error using ==> home" means that matlab sees one of my directories (/home/user/Project/etc...) as a function. Am I right? Because if it would see function cluster, the error would probably be: "Error using ==> cluster". Am I right? Just let a least me know if I'm on the right path.... Pleeeese help!!!!!
From: Jan Simon on 10 Jul 2010 16:48
Dear Lana, > /home/user/Mathworks_2008a/bin/matlab -nodesktop -nosplash < script1.m Do you want this: /home/user/Mathworks_2008a/bin/matlab -nodesktop -nosplash -r "script1" ?? Good luck, Jan |