matlab怎么换行(MATLAB的简单使用)

MATLAB的简单使用MATLAB的简单使用.mp300:0002:06未加入话题一、打开MATLAB软件;‍1.OpentheMATLABsoftware;二、在命令行窗口内,我们可

MATLAB的简单使用

matlab怎么换行(MATLAB的简单使用)

 

MATLAB的简单使用.mp300:0002:06未加入话题

matlab怎么换行(MATLAB的简单使用)

 

一、打开MATLAB软件;‍

1. Open the MATLAB software;

matlab怎么换行(MATLAB的简单使用)

 

matlab怎么换行(MATLAB的简单使用)

 

二、在命令行窗口内,我们可以进行简单的数学运算,如四则运算、次方运算等,还可以定义矩阵;(定义矩阵时,格式为:x=[ ],同一行的元素之间用空格隔开,换行用分号“;”)

2. In the command line window, we can perform simple mathematical operations, such as four arithmetic operations, power operations, etc., and also define a matrix; (when defining a matrix, the format is: x=[ ], use between elements in the same row Separate by spaces, use semicolon \";\" for line breaks)

matlab怎么换行(MATLAB的简单使用)

 

matlab怎么换行(MATLAB的简单使用)

 

三、在对矩阵进行计算时,需要用到“.*”以及“./”等,如A和B都是三阶方阵,“.*”代表把A和B两个矩阵对应位置元素相乘在分别放入该位置生成一个新的矩阵;(“.*”和“./”类似)

3. When calculating the matrix, you need to use \".*\" and \"./\", etc., for example, A and B are both third-order square matrices, and \".*\" represents the corresponding position elements of the two matrices A and B. Multiply and put them into the position to generate a new matrix; (\".*\" and \"./\" are similar)

matlab怎么换行(MATLAB的简单使用)

 

matlab怎么换行(MATLAB的简单使用)

 

四、同时,我们也可以使用sin、cos以及一些其他的在MATLAB内部设定好的函数进行计算;(在调用诸如sin、cos等函数时要使用括号)

4. At the same time, we can also use sin, cos and some other functions set in MATLAB to perform calculations; (brackets should be used when calling functions such as sin, cos, etc.)

matlab怎么换行(MATLAB的简单使用)

 

matlab怎么换行(MATLAB的简单使用)

 

五、右边的“工作区”里储存着我们定义过的变量,有一个变量是“ans”,代表结果,每次计算,ans的值都会被重新赋予;想要清除某一变量,输入“clear”和想清除的变量,如果在clear后面不加变量,则会清除所有变量;“clc”清除命令行窗口里的命令;

5. The variables we have defined are stored in the \"work area\" on the right. One variable is \"ans\", which represents the result. Each time the calculation is performed, the value of ans will be re-assigned; if you want to clear a variable, enter \"clear\" \"And the variable you want to clear. If you do not add a variable after clear, all variables will be cleared; \"clc\" clears the command in the command line window;

matlab怎么换行(MATLAB的简单使用)

 

matlab怎么换行(MATLAB的简单使用)

 

六、右下角的“命令历史记录”保留着我们发出的每一命令;

6. The \"Command History\" in the lower right corner retains every command we issued;

 

matlab怎么换行(MATLAB的简单使用)

 

七、在使用过程中,我们最常在“脚本编辑器”里进行操作,和各大编程语言类似,MATLAB在脚本编辑器里使用自己的语言进行操作,结果在命令行窗口里显示。(点击“运行”)

7. During use, we most often operate in the \"Script Editor\", similar to major programming languages, MATLAB uses its own language to operate in the script editor, and the results are displayed in the command line window. (Click \"Run\")

matlab怎么换行(MATLAB的简单使用)

 

matlab怎么换行(MATLAB的简单使用)

 

本文由learningyard新学苑原创,如有侵权请联系沟通~

图片为电脑截图

本站部分文章来自网络或用户投稿,如无特殊说明或标注,均为本站原创发布。涉及资源下载的,本站旨在共享仅供大家学习与参考,如您想商用请获取官网版权,如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
科技百科

小米青春版和标准版的区别(揭秘小米系列手机的不同之处)

2023-4-14 19:42:30

科技百科

荣耀手机截屏设置在哪设置(解锁荣耀9X最秀的截屏方法)

2023-4-14 19:42:41

搜索