gpt4 book ai didi

matlab - 在 matlab 中打开 GUIDE 时出错

转载 作者:行者123 更新时间:2023-12-04 19:16:01 27 4
gpt4 key购买 nike

当我使用打开新的空白 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.

我在 Ubuntu 14.04.1 上运行 matlab R14b。

如何解决?

最佳答案

Fish 与其他 shell 的不同之处在于它明确不符合 POSIX。除其他外,这意味着当其他 shell(例如 bash)会这样做时,fish 不会将字符串拆分为空白边界上的标记。这使得 fish 脚本更简单、更安全,但是当不同的程序假定 $SHELL 是 POSIX 兼容时,可能会导致这样的问题。最简单的解决方案是告诉 matlab 使用/bin/sh;要么做

env SHELL=/bin/sh matlab

或通过其配置文件。

关于matlab - 在 matlab 中打开 GUIDE 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37454327/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com