MATLAB from command line - Cannot find script in the current direcoty
1 次查看(过去 30 天)
显示 更早的评论
Hi, I just installed Matlab on a Linux machine that doesn't have the X server. Therefore I launch matlab using the -nojvm -nodisplay -nosplash options to run it from command line.
I can correctly launch commands from the "command windows", but it seams to not find any script. Here is an example:
>> dir
. .. test.m
>> ls
test.m
>> which test.m
/home/amerio/test/test.m
>> pwd
/home/amerio/test
>> test.m
Undefined variable "test" or function "test.m".
The script "test.m" is there. Both dis, ls and which can see it. However Matlab returns the "Undefined function" error when i try to run it.
I tried to change the permissions of test.m to allow execution from anyone (chmod 777 test.m), but this didn't work.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!