在 matlab 中打开 GUIDE 时出错
Error with GUIDE opening in matlab
当我使用
打开新的空白 GUI 时
guide
我收到以下错误
Error using copyfile
fish: Unknown command ' -r --preserve=timestamps,mode -f /usr/local/MATLAB/R2014b/toolbox/matlab/guide/guitemplates/guidetemplate0.fig
/tmp/tp95850ac1_4096_4622_a4d3_8674e8f55640.fig'
Error in guidetemplate/processDialogResult (line 168)
copyfile(srcfigfile, targetfigfile, 'writable');
Error in guidetemplate/dialogCallback (line 103)
processDialogResult(quickstartpanel);
Warning: Error occurred while evaluating listener callback.
我是 运行 matlab R14b Ubuntu 14.04.1。
如何解决?
Fish 与其他 shell 的不同之处在于它明确不 POSIX 兼容。除其他事项外,这意味着当其他 shell(例如 bash)会这样做时,fish 不会在空白边界上将字符串拆分为标记。这使得 fish 脚本更简单、更安全,但当不同的程序假设 $SHELL 是 POSIX 兼容时,可能会导致这样的问题。最简单的解决方案是告诉 matlab 使用 /bin/sh;通过做
env SHELL=/bin/sh matlab
或通过其配置文件。
当我使用
打开新的空白 GUI 时guide
我收到以下错误
Error using copyfile
fish: Unknown command ' -r --preserve=timestamps,mode -f /usr/local/MATLAB/R2014b/toolbox/matlab/guide/guitemplates/guidetemplate0.fig
/tmp/tp95850ac1_4096_4622_a4d3_8674e8f55640.fig'
Error in guidetemplate/processDialogResult (line 168)
copyfile(srcfigfile, targetfigfile, 'writable');
Error in guidetemplate/dialogCallback (line 103)
processDialogResult(quickstartpanel);
Warning: Error occurred while evaluating listener callback.
我是 运行 matlab R14b Ubuntu 14.04.1。
如何解决?
Fish 与其他 shell 的不同之处在于它明确不 POSIX 兼容。除其他事项外,这意味着当其他 shell(例如 bash)会这样做时,fish 不会在空白边界上将字符串拆分为标记。这使得 fish 脚本更简单、更安全,但当不同的程序假设 $SHELL 是 POSIX 兼容时,可能会导致这样的问题。最简单的解决方案是告诉 matlab 使用 /bin/sh;通过做
env SHELL=/bin/sh matlab
或通过其配置文件。