请问matlab里A(2,4)=[ ]是什么意思

来源:百度知道 编辑:UC知道 时间:2024/05/05 11:07:44
rt

表示矩阵A的第二行第四列的这个元素赋值为空

>> a=rand(4)

a =

0.8600 0.8998 0.6602 0.5341
0.8537 0.8216 0.3420 0.7271
0.5936 0.6449 0.2897 0.3093
0.4966 0.8180 0.3412 0.8385

>> a(2,4)=[]
??? Indexed empty matrix assignment is not allowed.
是不允许的,不能为空,填个数,是没有问题的,0也可以

但这是给第二行第四列赋值的语句