t:=1:100
用 a=cell(1,100) 和 a{1,1} =[sin(t),cos(t),0;cos(t),0,0;0,0,0] 来定义其中的一个元素{1,1}. 但是怎么批量的定义全部100个元素?
还有,显示a值的时候是[3x3 double]? 怎样能显示全部的元素?
多谢啦
尝试用 a{1,:}=rand(3) 这样的句子,但是出错,
提示:
The right hand side of this assignment has too few values to satisfy
the left hand side.
应该怎么实现呢?