Divide the array of cells

3 ビュー (過去 30 日間)
Lev Mihailov
Lev Mihailov 2019 年 6 月 25 日
コメント済み: Jan 2019 年 6 月 25 日
Hello! I have two arrays of cells and nodo divide them among themselves, in some parts of the cells there is an "o".
Gll{i}=Unt1{i}/Unt2{i} % Error @ Cell contents assignment to a non-cell array object.
Help solve this problem.
  2 件のコメント
Alex Mcaulley
Alex Mcaulley 2019 年 6 月 25 日
Please, upload your data in a mat file.
Jan
Jan 2019 年 6 月 25 日
What does this mean: "in some parts of the cells there is an "o""? What are "parts of cells"? What do you expect for dividing the character "o"?

サインインしてコメントする。

採用された回答

Jan
Jan 2019 年 6 月 25 日
The error message means, that Gll is not a cell array, but something else. Then you cannot use the curly braces for indexing.
Without seeing the definitions of the inputs and of Gll the readers cannot guess how to solve the problem.
  2 件のコメント
Lev Mihailov
Lev Mihailov 2019 年 6 月 25 日
Gll{i}=Unt1{i}/Unt2{i} % Isn't Gll {i} indexed?
Jan
Jan 2019 年 6 月 25 日
@Lev: I cannot know how you have defined Gll before. You need the curly braces, if you have defined it e.g. by:
Gll = cell(1, 200);
Please post the relevant part of the code - preferrably as "minimal working example": A piece of code which runs by copy&paste on the computers of the readers. Then add a copy of the complete error message and explain, what you want to achieve. Without these details, I cannot post an explicit solution or suggestion.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by