2012-10-15 29 views

回答

2

這是你所需要的?

anscell = cell(3,2) 
emptyList = cellfun(@isempty,anscell) 
anscell(emptyList(:,2),2)={3} 
1

這是否做你想做的事?

[anscell{emptyList(:,2),2}] = deal(3) 
+0

好吧,它可能是它,但它仍然沒有工作。我認爲,因爲我訪問我的細胞的方式不好,可能是? – user1742463

相關問題