3
可能重複:
Assign a value to multiple cells in matlab如何設置一個號碼在一單元的單元陣列內
我想輸入一個數字,可以說3,把所有的列2中的單元格爲空。
像這樣:
emptyList = cellfun(@isempty,anscell)
anscell{emptyList(:,2),2}=3
,但我得到這個消息
The right hand side of this assignment has too few values to satisfy the left hand side.
我可以克服它沒有循環,創造和與那些功能呢?
好吧,它可能是它,但它仍然沒有工作。我認爲,因爲我訪問我的細胞的方式不好,可能是? – user1742463