Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
基本的Matlab语法理解_Matlab - Fatal编程技术网

基本的Matlab语法理解

基本的Matlab语法理解,matlab,Matlab,我正在学习Matlab,我看到这一行,我不完全理解它。这不是我能用谷歌搜索到的东西,所以任何帮助都将不胜感激 size(A([1:3,5:100],:)) 分解成碎片(由内而外,不重复已解释的内容): 结果将是 [99 N] 其中N是A中的列数。为什么99?因为我们只跳过第4行(以及100之后的所有内容)。如果A的行数少于100行,则此命令将失败 [1:3,5:100] - elements 1,2,3 and 5,6,7,…100 A([], :) - Rows 1,2,3

我正在学习Matlab,我看到这一行,我不完全理解它。这不是我能用谷歌搜索到的东西,所以任何帮助都将不胜感激

size(A([1:3,5:100],:))
分解成碎片(由内而外,不重复已解释的内容):

结果将是

[99 N]
其中N是
A
中的列数。为什么
99
?因为我们只跳过第4行(以及100之后的所有内容)。如果
A
的行数少于100行,则此命令将失败

[1:3,5:100]   - elements 1,2,3 and 5,6,7,…100 
A([], :)      - Rows 1,2,3 and 5,6,7,…10 , and all columns, of matrix A
size()        - the dimensions of the object
[99 N]