天天看点

越览(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学苑整理发出,如有侵权请在后台留言!