仅运行 matlab 编辑器

发布于 2024-09-03 05:42:02 字数 56 浏览 1 评论 0原文

有没有办法只运行 matlab (7.9.0) 编辑器而不运行 Linux 上“桌面”的其余部分?

Is there a way to just run the matlab (7.9.0) editor and not the rest of the "desktop" on linux?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

好多鱼好多余 2024-09-10 05:42:02

这不能直接完成,因为编辑器在许多版本之前就不再是独立的可执行文件。现在它作为一个独立的 Java 窗口从 Matlab 桌面启动。但是,您可以尝试在显示编辑器后隐藏桌面,使用以下简单的代码片段:

com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.hide  % to hide desktop
com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.show  % to show desktop

请注意,如果您的编辑器停靠在桌面上,它将与桌面一起隐藏,所以要小心...

This can't be done directly, because the editor stopped being a stand-alone executable many releases ago. It is now launched as a separate Java window from the Matlab desktop. However, you could try hiding the desktop once the editor is displayed, using the following simple code snippet:

com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.hide  % to hide desktop
com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.show  % to show desktop

Note that if your editor is docked to the desktop, it will be hidden together with the desktop, so be careful...

月下客 2024-09-10 05:42:02

不,自从 起,这不再可能r2007a

不过,您可以为 emacs 和 vi 获得 Matlab 语法高亮显示。

No, this is no longer possible since r2007a.

You can get Matlab syntax highlighting for emacs and vi, though.

眼趣 2024-09-10 05:42:02

在我的 Windows 计算机上,我可以使用 -nodesktop 选项启动 MATLAB,然后进入命令提示符后,我仅使用 edit 启动编辑器。

我不确定这在使用的内存空间方面是否有所不同,但这样您只能获得编辑器和命令提示符(尽管没有自动完成功能)

On my windows machine, I can start MATLAB with the -nodesktop option, then once in the command prompt, I start only the editor with edit.

Im not sure if this is different in terms of memory space used, but this way you only get the editor and the command prompt (no auto-completion though)

谜兔 2024-09-10 05:42:02

您可以为 Kate 添加 Matlab 语法突出显示 通过插件。我不知道 gedit,但可能也有一个插件。

You can add Matlab syntax highlighting to Kate via a plugin. I don't know about gedit, but there's probably an addon for that as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文