軟件簡介Software Introduction
MATLAB是matrix&laboratory兩個詞的組合,意為矩陣工廠(矩陣實驗室),軟件主要面對科學計算、可視化以及交互式程序設計的高科技計算環境。它將數值分析、矩陣計算、科學數據可視化以及非線性動態系統的建模和仿真等諸多強大功能集成在一個易於使用的視窗環境中,為科學研究、工程設計以及必須進行有效數值計算的眾多科學領域提供了一種全面的解決方案,並在很大程度上擺脫了傳統非交互式程序設計語言(如C、Fortran)的編輯模式
MATLAB is a combination of the two words matrix&laboratory, which means matrix factory (matrix laboratory). The software mainly faces the high-tech computing environment of scientific computing, visualization and interactive programming. It integrates many powerful functions such as numerical analysis, matrix calculation, scientific data visualization, and nonlinear dynamic system modeling and simulation in an easy-to-use window environment. It is used for scientific research, engineering design, and many sciences that must carry out effective numerical calculations. The field provides a comprehensive solution, and to a large extent get rid of the editing mode of traditional non-interactive programming languages (such as C, Fortran).
Matlab特性Matlab features
- 語言簡潔、靈活(核心代碼主要利用C語言來實現)language introduction, flexibility (the core code is mainly implemented in C language)
- 豐富的運算符Rich operators
- 自由度高High degree of freedom
- 強大的圖形功能(二維三維甚至四維圖形的繪製和處理)Powerful graphics functions (drawing and processing of two-dimensional, three-dimensional and even four-dimensional graphics)

- 豐富的工具箱Rich toolbox
- 源程序的開放性The openness of the source program
- 良好的軟件接口(可以與maple、excel、word軟件進行通訊交互)Good software interface (can communicate and interact with maple, excel, word software)

Matlab9.0
主要窗口介紹Main window introduction

- 腳本窗口:批量編輯要運行的代碼
- 命令窗口:輸入命令,其中符號「》」表示matlab已經準備好執行命令
- 工作區(工作管理窗口):儲存被定義的變量
- 當前目錄窗口(工作路徑):顯示當前儲存命令的地址
- 工具欄(菜單欄):如圖所示
① Script window: batch edit the code to be run.
② Commind window: input the command, the symbol “”” means that matlab is ready to execute the command.
③ work area (work management window) work space: store the defined variables.
④ Current directory window (working path) current directory: display the address of the current storage command.
⑤ Toolbar (menu bar): as shown in the figure.
Matlab實用建議Matlab practical suggestions
1.工作路徑的選擇The choice of working path
- 編輯前注意當前工作的文件夾,用戶可以選擇更改路徑Pay attention to the current working folder before editing, the user can choose to change the path.

- 當腳本文件的路徑與當前工作路徑不一致時,點擊運行腳本命令,系統會提示如下When the path of the script file is inconsistent with the current working path, click the run script command, the system will prompt as follows:

2.使用腳本編輯代碼Use the script to edit the code
優點;方便查看、修改、儲存和逐條運行
Advantages:easy to view, modify, store and run one by one

3.適當清理工作區Properly clean up the work area
- 方法一:命令窗口輸入clear後按下enter鍵
- Method 1: Enter clear in the command window and press enter.

- 方法二;點擊工作區的向下的小箭頭選擇「清空工作區」
- Method 2: Click the small downward arrow in the work area to select “Clear Work Area”.

4.查找歷史命令Find historical commands
- 在使用過程中,如果輸入命令有誤可以返回上一條或之前的命令,重新編輯In the process of using, if the input command is wrong, you can return to the previous or previous command and re-edit.
- 方法一(適用於命令少的情況):進入命令窗口-光標停留在最新一條命令處-直接按下電腦上的up鍵
- Method one (applicable to the situation with few commands): Enter the command window-the cursor stays at the latest command-directly press the up key on the computer.

- 方法二(命令較多或者較繁雜):打開歷史命令窗口-雙擊命令即可運行
- Method two (more commands or more complicated): open the historical command window-double-click the command to run.

5.Help的調用Help call
在使用matlab時,如果想查閱matlab的相關知識點,可以調用help,具體方法如下:在命令窗口直接輸入help-選擇相應的主題點擊查閱即可When using matlab, if you want to consult the relevant knowledge points of matlab, you can call help, the specific method is as follows: directly enter help in the command window-select the corresponding topic and click to view.

如果您對今天的文章有獨特的想法,歡迎給我們留言,讓我們相約明天,祝您今天過得開心快樂!
If you have a unique idea about today』s article, welcome to leave us a message, let us meet tomorrow, I wish you a happy day today!
原創文章,作者:投稿專員,如若轉載,請註明出處:https://www.506064.com/zh-hk/n/203485.html
微信掃一掃
支付寶掃一掃