Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I am trying to add a cell value to a number but i got this error. Cell contents reference from a non-cell array object.

1 回表示 (過去 30 日間)
sassi nizar
sassi nizar 2015 年 11 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
the instruction is:
vect{cell,1}{1,1}=sum(vect{cell,1}{1,1})+occ_d;

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 11 月 2 日
No, that code is going to give you the error
Error using cell
Not enough input arguments.
You need to pass at least one parameter to cell() such as
vect{cell(3,7),1}{1,1}=sum(vect{cell(3,7),1}{1,1})+occ_d;
This in turn would lead you to an error about trying to use a cell array as an index, but at least you would be past the initial error.

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by