MATLAB 怎么给多维的cell 赋值?

我先定义一个三维cell :response=cell(:,:,7)
然后定义了一个一维cell:onet=cell(1,7)
然后给onet赋了7个字符:onet={'d','d','d','d','d','d','d'}
然后想把onet赋给response的某个第三维:response{23,45,:}=onet 然后出错了~
为毛不行呢 MATLAB给的错误是 ??? The right hand side of this assignment has too few values to satisfy the left hand side.
左右不匹配?

裸求高手解答!俺是穷人 只能给15分 但是诚心感谢!

还是括号和大括号之间的概念没搞清楚造成的

response=cell(2,2,7);
onet={'d','d','d','d','d','d','d'};
response(2,1,:)=onet%用括号,不是大括号
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答