如何在没有GUI的情况下运行MATLAB并获得图形结果?
我想在我的 VPS 上运行 matlab。最让我困惑的是我必须通过SSH在没有GUI的情况下运行MATLAB并获得图形结果。 当我在 bash 中命令 matlab -nodisplay -r "func()"
时,发生了很多错误,例如
“警告:以过时的方式使用 NEWFF。”“使用 ==> 时出错 nntraintool 位于 28","trainlm>train_network 位于 228" ...
我该如何处理这些错误?
I wanna run matlab on my VPS. What puzzled me most is that I must run MATLAB without GUI by SSH and get the graphical result.
When I commanded matlab -nodisplay -r "func()"
in bash, lots of mistake occurred such as
"Warning: NEWFF used in an obsolete way. " "Error using ==>
nntraintool at 28","trainlm>train_network at 228" ...
How can I deal with these mistakes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果“获取图形结果”引用一个文件,您可以尝试 The MathWorks 提供的以下解决方案。
有可能吗当 MATLAB 使用“-nodisplay”选项运行时保存图形?
If 'get the graphical result' refers to a file, you may try the following solution provided by The MathWorks.
Is it possible to save a figure when MATLAB is running with "-nodisplay" option?
您看到的警告与通过 VPS 使用图形无关。它们表明您的
func()
正在以不再支持的方式从 Neural Network Toolbox 调用命令。The warning you are seeing is not connected to the use of graphics over a VPS. They indicate that your
func()
is calling commands from Neural Network Toolbox in a way that is no longer supported.