1788_通过CMD命令行启动操作MATLAB

这篇具有很好参考价值的文章主要介绍了1788_通过CMD命令行启动操作MATLAB。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

全部学习汇总: GitHub - GreyZhang/g_matlab: MATLAB once used to be my daily tool. After many years when I go back and read my old learning notes I felt maybe I still need it in the future. So, start this repo to keep some of my old learning notes servral years ago.

工作需要通过CMD启动MATLAB并对其进行部分操作,一通试探找出了MATLAB作为命令的参数,具体的参数表如下:

matlab [-? ^| -h ^| -help]

       [-c licensefile]

       [-nosplash]

       [-nodesktop ^| -nojvm]

       [-win32]

       [-r MATLAB_command]

       [-logfile log]

       [-wait]

       [-noFigureWindows]

       [-automation] [-regserver] [-unregserver]

    -?^|-h^|-help        - Display arguments. Do not start MATLAB.

    -c licensefile       - Set location of the license file that MATLAB

                           should use. It can have the form port@host.

                           The LM_LICENSE_FILE and MLM_LICENSE_FILE

                           environment variables will be ignored.

    -nosplash            - Do not display the splash screen during startup.

    -nodesktop           - Do not start the MATLAB desktop. Use V5 MATLAB

                           command window for commands. The Java virtual

                           machine will be started.

    -singleCompThread    - Limit MATLAB to a single computational thread.

                           By default, MATLAB makes use of the multithreading

                           capabilities of the computer on which it is running.

    -nojvm               - Shut off all Java support by not starting the

                           Java virtual machine. In particular the MATLAB

                           desktop will not be started.

    -win32               - forces matlab to run in win32 mode even on 64 bit

                           processors.

    -r MATLAB_command    - Start MATLAB and execute the MATLAB_command.

                           Any "M" file must be on the MATLAB path.

    -logfile log         - Make a copy of any output to the command window

                           in file log. This includes all crash reports.

    -wait                - MATLAB is started by a separate starter program

                           which normally launches MATLAB and then immediately

                           quits. Using the -wait option tells the starter

                           program not to quit until MATLAB has terminated.

                           This option is useful when you need to process the

                           the results from MATLAB in a script. The call to

                           MATLAB with this option will block the script from

                           continuing until the results are generated.

    -noFigureWindows     - Never display a figure window

    -automation          - Start MATLAB as an automation server,

                           minimized and without the MATLAB splash screen.

    -jdb [port]          - Enable remote Java debugging on port (default 4444)

    -regserver           - Register MATLAB as a COM server

    -unregserver         - Remove MATLAB COM server registry entries.

    -sd startup directory- Allows specification of the MATLAB startup

                           directory.  The token $documents can be used

                           to reference the Windows "Documents" folder

    -shield level        - Win32 only: Protects integrity of address space to

                           ensure large contiguous free memory for array data

                           level - minimum (default)

                                   protects 5000000h-7000000h address range

                                   until before matlabrc.m is processed

                                 - none (safest) no protection is applied

                           The following are experimental and may be changed

                                   or removed:

                                 - medium (aggressive) protects

                                   5000000h-7000000h address range

                                   until after matlabrc.m is processed

                                 - maximum (very aggressive) calculated

                                   range held until after matlabrc.m is

                                   processed

    -shieldload <list>   - Win32 only: (experimental) loads dlls identified in

                                   comma separated list

    Version: 8.3.0,539

先抛开我想要做的东西,简单来看一下上面这些参数的作用,我挑选部分我觉得我可能有用或者感兴趣的列数自己的理解如下:

1,-?^|-h^|-help

这个参数是我找到这一推参数的根由。这是查找帮助时候的参数,使用的时候MATLAB并不会启动。

2,-c licensefile

指定启动时候的license,如果跟环境变量的冲突,以这个为准。

3,-nosplash

如果加了这个参数,MATLAB启动时候停留在桌面几秒钟的那个图形界面将不再显示。

4,-nodesktop

这个参数可以不以桌面环境的形式启动MATLAB,但是还是没有百分百摆脱GUI。我曾经看过一眼ETAS的HIL软件平台,其实ETAS选择的就是这种方式。

5,-singleCompThread

默认情况下MATLAB会使用多线程,但是如果使用这个命令参数的话就会强制MATLAB使用单一的线程。

6,-nojvm

禁用JAVA虚拟机。

7,-win32

即使是64位处理器也以win32的模式跑(为什么不直接在64位系统上安装一个32位版本?)

8,-r MATLAB_command

执行MATLAB的命令或者M文件,M文件的话必须在MATLAB的path中。这个值得一说,因为我在这上面反复碰壁最终才找到了一个好歹能够对付的解决方案。

9,-logfile log

记录命令输出窗口的记录以及所有的命令,最后如果出错似乎也记录。

10,-wait

介绍中说这个很有用,尤其是启动了一个进程而后面的程序又需要这个进程的结果时。对目前的我来说,可能还过于高级,暂时用不上。

11,-noFigureWindows

我没有弄明白这个跟4有什么差异。

12,-sd startup directory

这个我觉得很有用,可以启动MATLAB的时候自动切换到指定的目录。

剩下的几个关于服务器、JAVA以及操作系统的,超出了我的知识范畴,暂时不做探索。文章来源地址https://www.toymoban.com/news/detail-731962.html

到了这里,关于1788_通过CMD命令行启动操作MATLAB的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • 使用批处理文件(.bat)启动多个CMD窗口并执行命令

    使用批处理文件(.bat)启动多个CMD窗口并执行命令

    由于每次启动本机的kafka都需要打开2个cmd窗口,分别启动zookeeper服务和kafka服务,操作相对繁琐,于是想起了批处理来帮忙一键启动。 在桌面新建一个txt文件,改后缀名为.bat,并加上下面的代码。 代码结尾不加pause的原因是,执行完关闭窗口,因为不需要该窗口保留着,免得

    2024年02月16日
    浏览(13)
  • Windows基本操作(一、cmd命令)

    1、文件的增删改查 2、文件夹的增删改查 3、网络命令 4、系统命令

    2024年02月14日
    浏览(9)
  • Qt 使用WINDOWS API读取SMBIOS信息,并通过CMD命令打印相关信息,参考DumpSMBIOS项目

    Qt 使用WINDOWS API读取SMBIOS信息,并通过CMD命令打印相关信息,参考DumpSMBIOS项目

    在获取PE系统中的CPU、主板、内存信息时,发现使用WMI部分信息无法获取,通过gitGub上的DumpSMBIOS完全解决了这个问题,并单独做成了个案例,以下示例和代码都是参考DumpSMBIOS项目 SMBIOS这个数据还是用到的比较少。但是DumpSMBIOS项目有很多方面直接学习借鉴的东西。 详见DumpS

    2024年01月21日
    浏览(13)
  • 【MATLAB】通过MATLAB提供的函数产生矩阵

    目录 1、单位矩阵( E方阵)和广义单位矩阵的产生 2、随机数矩阵的产生 

    2023年04月08日
    浏览(20)
  • Windows环境命令行CMD启动远程服务器上的bat文件,附查看远程服务器进程和按PID停止远程服务器进程命令

    Windows环境命令行CMD启动远程服务器上的bat文件,附查看远程服务器进程和按PID停止远程服务器进程命令 Windows环境命令行CMD启动远程服务器上的bat文件,命令如下: 执行后会返回启动的进程ID: 查看远程服务器进程命令: 按PID停止远程服务器进程命令:

    2024年02月07日
    浏览(15)
  • Matlab通过串口与下位机通讯

    Matlab通过串口与下位机通讯

    最近用Matlab通过串口与STM32单片机通讯。Matlab在2019b版本以后,要用serialport串口函数集替换掉原有的serial串口函数集。Matlab的serialport串口工具说明文档并不完善,查了一些资料,实现了单字节中断回调式的串口接收。程序执行的效率高,并且在通讯过程中,不会阻塞主程序的

    2024年02月11日
    浏览(5)
  • MATLAB入门教程||MATLAB位运算||MATLAB集合操作

    MATLAB提供位运算 ,如\\\'位\\\',\\\'位或\\\'和\\\'位不操作,移位操作等各种函数 以下的表格显示了常用的按位运算: 函数 目的/作用 bitand(a, b) 整数a和b的逐位AND bitcmp(a) a的位补码 bitget(a,pos) 在指定位置pos中获取位,在整数数组A中 bitor(a, b) 整数a和b的逐位OR bitset(a, pos) 在某一位置上设置

    2024年02月07日
    浏览(12)
  • MATLAB语言 实验一 MATLAB工作环境熟悉及简单命令的执行

    MATLAB语言 实验一 MATLAB工作环境熟悉及简单命令的执行

    MATLAB工作环境熟悉及简单命令的执行 熟悉MATLAB的工作环境,学会使用MATLAB进行一些简单的运算。 MATLAB的启动和退出,熟悉MATLAB的桌面(Desktop),包括菜单(Menu)、工具条 (Toolbar)、命令窗口(Command Window)、历史命令窗口、工作空间(Workspace)等;完成一些基本的矩阵操作;学

    2024年02月09日
    浏览(9)
  • 【matlab进阶学习-7】matlab 图表标注操作

    【matlab进阶学习-7】matlab 图表标注操作

    本文参考:MATLAB04:基础绘图-CSDN博客 plot(x,y,LineSpec) 各参数意义如下: x : 图线上点的x坐标 y : 图线上点的y坐标 LineSpec : 图线的线条设定,三个指定 线型 , 标记符号 和 颜色 的 设定符 组成一个字符串,设定符不区分先后.具体细节请参考 官方文档 . 线型设定符 线型 标记设定符 标

    2024年02月22日
    浏览(11)
  • 【matlab常用的清空命令】

    注:1-5一般用在程序开头: 1.clc:清空 命令行窗口 中的内容; 2.clear:清空 工作空间workspace 中的所有变量; 3.clear all:清除 工作空间 的所有变量,函数,和MEX文件(比clear更彻底); 4.clf/clf (table_name) : 清除 所有图表的内容 /清除 特定图表table_name 的内容; 5.close all:关

    2024年02月16日
    浏览(11)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包