日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

在Linux命令行下运行Matlab

發(fā)布時間:2025/6/17 linux 49 豆豆
生活随笔 收集整理的這篇文章主要介紹了 在Linux命令行下运行Matlab 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

在Linux下安裝完matlab后,會在/usr/local/bin/下生成matlab文件,可以使用matlab命令。

Usage:? matlab [-h|-help] | [-n | -e]
????????????????? ? ? ?? [-arch | v=variant | v=arch/variant]
????????????????? ? ? ?? [-c licensefile] [-display Xdisplay | -nodisplay]
???????????????????????? [-nosplash] [-mwvisual visualid] [-debug] [-softwareopengl]
???????????????????????? [-desktop | -nodesktop | -nojvm]
????????????????? ? ? ?? [-r MATLAB_command] [-logfile log]
????????????????? ? ? ?? [-Ddebugger [options]]

??? -h|-help????????????????????????? - Display arguments.
??? -n?????????????????????????????????? - Display final environment variables,
??????????????????????????????????????????? arguments, and other diagnostic
???????????????????????????????????????? ?? information. MATLAB is not run.
??? -e????????????????????????? ???????? - Display ALL the environment variables and
?????????????????????????????????? ???????? their values to standard output. MATLAB
?????????????????????????????????? ???????? is not run. If the exit status is not
?????????????????????????????????? ???????? 0 on return then the variables and values
?????????????????????????????????? ???????? may not be correct.
??? -arch???????????????????? ???????? - Start MATLAB assuming architecture arch.
??? v=variant????????????? ???????? - Start the version of MATLAB found
?????????????????????????????????? ???????? in bin/glnxa64/variant instead of bin/glnxa64.
??? v=arch/variant????? ???????? - Start the version of MATLAB found
?????????????????????????????????? ???????? in bin/arch/variant instead of bin/glnxa64.
??? -c licensefile?????? ? ???????? - Set location of the license file that MATLAB
?????????????????????????????????? ???????? should use.? It can have the form port@host or
?????????????????????????????????? ???????? be a colon separated list of license files.
?????????????????????????????????? ???????? The LM_LICENSE_FILE and MLM_LICENSE_FILE
?????????????????????????????????? ???????? environment variables will be ignored.
??? -display Xdisplay? ???????? - Send X commands to X server display, Xdisplay.
??? -nodisplay??????????? ???????? - Do not display any X commands. The MATLAB
?????????????????????????????????? ???????? desktop will not be started. However, unless
?????????????????????????????????? ???????? -nojvm is also provided the Java virtual machine
?????????????????????????????????? ???????? will be started.
??? -nosplash???????????? ???????? - Do not display the splash screen during startup.
??? -mwvisual visualid???????- The default X visual to use for figure windows.
??? -debug?????????????? ?????????? ?- Provide debugging information especially for X
?????????????????????????? ???????????????? based problems.
??? -desktop???????????? ?????????? - Allow the MATLAB desktop to be started by a
?????????????????????????? ????????????????process without a controlling terminal. This is
?????????????????????????? ????????????????usually a required command line argument when
?????????????????????????? ????????????????attempting to start MATLAB from a window manager
?????????????????????????? ????????????????menu or desktop icon.
??? -nodesktop??????????????????? - Do not start the MATLAB desktop. Use the current
?????????????????????????? ????????????????terminal 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.
??? -jdb [port]?????????????????????? - Enable remote Java debugging on port (default 4444)
??? -r MATLAB_command?? - Start MATLAB and execute the MATLAB_command.
??? -logfile log???????????????????- Make a copy of any output to the command window
?????????????????????????? ????????????????in file log. This includes all crash reports.
??? -Ddebugger [options] ?? - Start debugger to debug MATLAB.
??? -nouserjavapath??????????? - Ignore custom javaclasspath.txt and javalibrarypath.txt files.

在命令行下運行matlab,主要用到上面幾個紅色的參數(shù)。

1.直接運行Matlab

$ matlab

然后可以直接運行matlab腳本


2.運行m文件

如果m文件名為matlabfile.m

(1)方法一

進入m文件所在目錄后,運行

$ matlab -nodesktop -nosplash -rmatlabfile

只用文件名matlabfile,不能添加.m

(2)修改.bashrc文件

$ vim ~/.bashrc

添加如下:

# Add an "mrun" alias for running matlab in the terminal.
alias mrun="matlab -nodesktop -nosplash -logfile `date +%Y_%m_%d-%H_%M_%S`.log -r"

保存后,進入.m文件所在目錄,運行

$ mrun matlabfile

轉載于:https://www.cnblogs.com/lixuebin/p/10814888.html

總結

以上是生活随笔為你收集整理的在Linux命令行下运行Matlab的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: aaaaaabbbbbb毛片 | av天堂一区二区三区 | 在线欧美| 美女被啪啪 | 免费黄色网址在线 | 亚洲最大成人网色 | 国产在线精| 亚洲欧美中文字幕5发布 | 亚洲最黄视频 | 伊人影院久久 | 极品色综合 | 这里只有精品视频在线观看 | 亚洲天堂视频在线 | 台湾佬av | 精彩久久| 亚洲在线资源 | 久久久午夜视频 | 无码人妻精品一区二区三区温州 | 老头老太做爰xxx视频 | 全部免费毛片在线播放 | 亚洲天堂一区二区 | 中国毛片网 | 国产高清在线视频观看 | 免费av高清| 亚洲天堂网址 | 日本爽爽爽 | 久久久久99精品成人片直播 | 中文字幕免费视频 | 成年男女免费视频网站 | 黄色片女人 | 日韩欧美视频在线 | 亚洲精品一区二三区 | 麻豆视频在线 | 天天干夜夜操视频 | 高清欧美性猛交 | 911美女片黄在线观看游戏 | av日韩国产 | 国产免费a视频 | jizz高潮| 久久久蜜桃一区二区人 | 欧美亚洲精品在线观看 | 中出亚洲 | 极品美女扒开粉嫩小泬 | 夜夜操影视 | 亚洲看看| 国产三级精品在线观看 | 蜜臀久久99精品久久久久久宅男 | 噜噜噜噜私人影院 | 91丝袜一区二区三区 | 中日韩免费视频 | 精品欧美一区二区三区 | 国产乱大交 | 麻豆精品国产 | 影音先锋日韩资源 | 精品视频一二三 | 欧美日韩加勒比 | 日韩国产免费 | 亚洲资源网 | 免费的黄色的网站 | 黄色xxxxx | 亚洲片国产一区一级在线观看 | 快播在线视频 | 久久久久亚洲 | 久久精品2019中文字幕 | 日韩精品少妇 | 91精品国产一区二区三区蜜臀 | 亚洲一本在线观看 | 一区二区日本视频 | 国产精品久久久久久人妻精品动漫 | 国产黄色一级片视频 | 日本老太婆做爰视频 | 国产一级性生活 | 在线观看涩涩 | 国产精品欧美激情在线 | 制服诱惑一区二区三区 | 色性网| 国产va在线 | 三a大片 | 午夜污污 | 最近的中文字幕 | 九九九九九伊人 | 国产精品视频成人 | 免费黄色一级 | 亚洲视频一 | 九一亚色 | 高清乱码免费网 | 青青在线视频观看 | 干日本少妇首页 | 在线黄视频 | 欧美亚洲国产一区二区三区 | 成人爽站w47pw | 隣の若妻さん波多野结衣 | 女人扒开屁股让男人桶 | 免费色片网站 | 欧美熟女一区二区 | 黄色网址在线播放 | 欧美日韩片 | 精品一区二区久久久久蜜桃 | 日韩大片av|