matlab sum函数a=[1 2 3;4 5 6;7 8 9]a =1 2 34 5 67 8 9>> sum(a)Index exceeds matrix dimensions.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 16:26:26
matlabsum函数a=[123;456;789]a=123456789>>sum(a)Indexexceedsmatrixdimensions.matlabsum函数a=[123;456;789]
matlab sum函数a=[1 2 3;4 5 6;7 8 9]a =1 2 34 5 67 8 9>> sum(a)Index exceeds matrix dimensions.
matlab sum函数
a=[1 2 3;4 5 6;7 8 9]
a =
1 2 3
4 5 6
7 8 9
>> sum(a)
Index exceeds matrix dimensions.
matlab sum函数a=[1 2 3;4 5 6;7 8 9]a =1 2 34 5 67 8 9>> sum(a)Index exceeds matrix dimensions.
可以啊
>> a=[1 2 3;4 5 6;7 8 9]
a =
1 2 3
4 5 6
7 8 9
>> sum(a)
ans =
12 15 18