天天看點

越覽(2):Matlab的簡單認識

作者:LearningYard學苑
越覽(2):Matlab的簡單認識

分享興趣,傳播快樂,

增長見聞,留下美好。

親愛的您,這裡是LearningYard學苑!

今天小編為大家帶來文章“越覽(2):Matlab的簡單認識”

歡迎您的通路。

Share interest, spread happiness,

increase knowledge,and leave beautiful.

Dear, this is LearningYard Academy!

Today, the editor brings you the article “Yue Lan (2):

A simple understanding of Matlab.”

Welcome to visit!

一、思維導圖(Mind mapping)

越覽(2):Matlab的簡單認識

二、産品概述(Product overview)

Matlab 是由美國MathWorks公司開發的一種進階的數值計算和資料可視化軟體,它最初設計用于簡化線性代數和矩陣運算,但迅速發展成為一個功能全面的計算環境。Matlab結合了數值分析、科學計算、資料可視化、算法開發和互動式程式設計的多種功能,其簡潔的文法和直覺的界面降低了複雜計算任務的門檻,使科學家、工程師、研究人員和學生能夠專注于解決問題而非程式設計細節。

Matlab is a kind of advanced numerical calculation and data visualization software developed by MathWorks Company in the United States. It was originally designed to simplify linear algebra and matrix operations, but it has rapidly developed into a fully functional computing environment. Matlab combines the functions of numerical analysis, scientific calculation, data visualization, algorithm development and interactive programming. Its concise grammar and intuitive interface lower the threshold of complex computing tasks, enabling scientists, engineers, researchers and students to focus on solving problems rather than programming details.

其核心包含Matlab程式設計平台與Simulink仿真工具,支援從簡單的數學運算到複雜系統設計的廣泛應用,搭配多樣化的工具箱如信号處理、圖像處理、控制系統設計等,滿足不同科研與工程需求。它包含一個易于學習和使用的程式設計語言,以及豐富的内置函數庫,便于進行複雜數值計算、資料分析和算法實作。

Its core includes Matlab programming platform and Simulink simulation tools, which support a wide range of applications from simple mathematical operations to complex system design, and cooperate with diverse toolboxes such as signal processing, image processing and control system design to meet different scientific research and engineering needs. It contains a programming language that is easy to learn and use, and a rich built-in function library, which is convenient for complex numerical calculation, data analysis and algorithm implementation.

三、工作環境(working environment)

Matlab的工作環境是其使用者界面的核心組成部分,為使用者提供了進行程式設計、資料分析、可視化以及應用開發的內建環境。指令行視窗、工作區、工具欄是工作環境中的主要元件。

The workspace in Matlab is a pivotal component of its user interface, serving as an integrated environment where users can engage in programming, data analysis, visualization, and application development. Key elements of this workspace include the command-line interface, the workspace pane, and toolbars.

越覽(2):Matlab的簡單認識

指令行視窗是與Matlab進行互動的主要界面,使用者可以在此輸入指令、函數調用、腳本執行等,并立即得到輸出結果。工作區視窗顯示了目前Matlab會話中所有已定義變量的清單,包括它們的名稱、大小、資料類型和位元組數。工具欄通常包含首頁、繪圖和App三個标簽頁,提供了快速通路常用功能的按鈕,如建立檔案、打開檔案、儲存檔案、導入資料、設定路徑以及啟動繪圖和應用程式設計的功能。

The command-line interface is the primary interface for interacting with A, allowing users to input commands, function calls, script executions, and receive immediate output results. The workspace window displays a list of all variables currently defined within the A session, including their names, sizes, data types, and byte counts. The toolbar typically features three tabs—Home, Plotting, and Apps—providing quick-access buttons to frequently used functionalities such as creating new files, opening files, saving files, importing data, setting paths, as well as initiating graphing and application design operations.

工具欄中最豐富的是應用程式,裡面可以分為功能應用程式和學科應用程式。應用程式頁籤集中了用于建立、管理和部署自定義應用程式的功能,可以讓非程式設計或輕度程式設計使用者能夠通過圖形使用者界面(GUI)建構和使用應用程式,同時也支援進階使用者進行更深層次的開發和內建。

The most abundant toolbar is application, which can be divided into functional application and subject application. The application tab focuses on the functions of creating, managing and deploying custom applications, which enables non-programming or lightly programming users to build and use applications through a graphical user interface (GUI), and also supports advanced users to carry out deeper development and integration.

越覽(2):Matlab的簡單認識

四、簡單運用(Simple application)

首先,給剛入門的小夥伴介紹五個常用的矩陣生成函數。

First of all, introduce five commonly used matrix generation functions to beginners.

1、eye(m,n)可以建立m行n列的機關矩陣。

1、Eye(m,n) can create a identity matrix with m rows and n columns.

越覽(2):Matlab的簡單認識

2、ones(m,n)可以建立m行n列全為1的矩陣。

2、Ones(m,n) can create an m-by-n matrix with all 1 elements.

越覽(2):Matlab的簡單認識

3、zeros(m,n)可以建立m行n列全為0的矩陣。

3、Zeros(m,n)can create an m-by-n matrix with all 0 elements.

越覽(2):Matlab的簡單認識

4、rand(m,n)可以建立m行n列的随機矩陣。

4、Rand(m,n)can create a random matrix with m rows and n columns.

越覽(2):Matlab的簡單認識

5、randn(m,n)可以建立m行n列标準正态分布的随機矩陣。

5、Randn(m,n) can create a random matrix with m rows and n columns of standard normal distribution.

越覽(2):Matlab的簡單認識

接下來分享一個簡單的代碼。點選首頁中-建立腳本,編輯器視窗就會打開。輸入x=4+5,點選運作,指令行視窗就會顯示結果了。這樣,第一個代碼就學會了。隻學理論可不夠,動手才是最快的學習,快打開你的軟體試試吧。

越覽(2):Matlab的簡單認識

Next, share a simple code. Click "Create Script" on the home page, and the editing window will open. Enter x=4+5, click Run, and the result will be displayed in the command line window. In this way, the first code is learned. It's not enough to learn only theory. Hands-on is the fastest way to learn. Open your software and try it.

越覽(2):Matlab的簡單認識

今天的分享就到這裡了。

如果您對文章有獨特的想法,

歡迎給我們留言,

讓我們相約明天。

祝您今天過得開心快樂!

That's all for today's sharing.

If you have a unique idea about the article,

please leave us a message,

and let us meet tomorrow.

I wish you a nice day!

文案|yyz

排版|yyz

稽核|Whisper

翻譯:百度翻譯

參考資料:百度、哔哩哔哩、小紅書

本文由LearningYard學苑整理發出,如有侵權請在背景留言!