首页 > 其他分享 >1788_通过CMD命令行启动操作MATLAB

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

时间:2023-09-24 22:04:56浏览次数:37  
标签:1788 启动 CMD win32 command MATLAB 参数 until


全部学习汇总: 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以及操作系统的,超出了我的知识范畴,暂时不做探索。

标签:1788,启动,CMD,win32,command,MATLAB,参数,until
From: https://blog.51cto.com/greyzhang/7588966

相关文章

  • 基于方向编码的模板匹配算法matlab仿真
    1.算法运行效果图预览  2.算法运行软件版本MATLAB2022a 3.算法理论概述       模板匹配是一种常见的计算机视觉方法,用于在一幅图像中寻找指定的模板。它在目标检测、图像识别、物体跟踪等领域中有广泛的应用。基于方向编码的模板匹配算法是一种改进的模板......
  • Matlab绘制图表
    学习一门技术最好的方式就是阅读官方文档,可以查看MATLAB官方文档二维图表折线图函数图形描述loglog()x轴和y轴都取对数坐标semilogx()x轴取对数坐标,y轴取线性坐标semilogy()x轴取线性坐标,y轴取对数坐标plotyy()带有两套y坐标轴的线性坐标系ploar()极坐标系对数坐标系图线下面例......
  • matlab-动图
    matlab中的gif动图%彩色图像,举个例子,n个图片%对于实际图形,常用到frame=getframe(fig);im(idx)=frame2im(frame);n=100;fori=1:nimg{i}=im2uint8(rand(512,512,3));end%将图片组合成gif图filename='test_rgb.gif';foridx=1:n[A,map]=rgb2ind......
  • matlab-griddata函数
    四维图,xyz-v(经度、纬度、深度--速度),对于不规则的数据进行三维插值,griddata函数。%readthevelocityperturbationfilename='dv';delimiterIn='';headerlinesIn=1;A=importdata(filename,delimiterIn,headerlinesIn);lat=A.data(:,1);lon=A.data(:,2);de......
  • 基于Yolov2深度学习网络的车辆检测算法matlab仿真
    1.算法运行效果图预览  2.算法运行软件版本MATLAB2022A 3.算法理论概述        车辆检测是计算机视觉领域中的一个重要问题。它在自动驾驶、智能交通系统、交通监控以及车辆计数等应用场景中起着至关重要的作用。近年来,深度学习在图像识别领域取得了显著的......
  • 基于FasterRCNN深度学习网络的车辆检测算法matlab仿真
    1.算法运行效果图预览 Tttttttttttttt123   2.算法运行软件版本MATLAB2022A 3.算法理论概述       车辆检测是计算机视觉和人工智能领域的重要研究方向,它在交通管理、智能驾驶和安防等领域具有广泛的应用。FasterR-CNN是一种常用的目标检测算法,结合了深度......
  • 用于异构无线传感器网络的多聚合器多链路由协议(Matlab代码实现)
     ✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。......
  • 基于已知点云数据的最小外接圆matlab函数
    基于已知点云数据的最小外接圆matlab函数–MATLAB中文论坛(ilovematlab.cn) %该函数是在其他网站看到的,以此共享。有两种方法(函数)实现。%第一种比较费时:function[xc,yc,r]=smallestcircle(x,y)%Thisfindsthecircleofsmallestareacontainingall%thepoint......
  • Matlab决策树对空气质量和天气温度及天气数据做交通出行推荐预测|附代码数据
    全文链接:http://tecdat.cn/?p=31784原文出处:拓端数据部落公众号最近我们被客户要求撰写关于决策树的研究报告,包括一些图形和统计输出。为解决城市交通拥堵问题,本文提出了一种基于Matlab决策树的交通预测方法,我们通过采集上海地区的空气质量数据和温度数据,帮助客户在Matlab中......
  • m基于码率兼容打孔LDPC码BP译码算法的matlab误码率仿真
    1.算法仿真效果matlab2022a仿真结果如下:2.算法涉及理论知识概要码率兼容打孔LDPC码BP译码算法是一种改进的LDPC译码算法,能够在不同码率下实现更好的译码性能。该算法通过在LDPC码中引入打孔操作,使得码率可以灵活地调整,同时利用BP(BeliefPropagation)译码算法进行迭代译码,提高了......