Unable to use a value of type 'cell' as an index.

2 ビュー (過去 30 日間)
Tino
Tino 2019 年 5 月 15 日
回答済み: Andrei Bobrov 2019 年 5 月 15 日
Hi
How can I make refer to a value in an index
for instance I have m = [0]
[1]
[4]
[3]
[8]
[3]
[1]
[4]
[2]
[1]
.
.
.
[n]
I want to use this equation to refer to the value of each cell till the nth value in the cell
for cell 1
mar1 = eo (m(1,1))^ (eo - 1);
I am getting the error
Unable to use a value of type 'cell' as an index.
Error in martin (line 40)
mar1 = eo (m(1,1))^ (eo - 1);
Thanks in advance

採用された回答

Andrei Bobrov
Andrei Bobrov 2019 年 5 月 15 日
Use:
md = cat(1,m{:});
...
mar1 = eo (md(1,1))^ (eo - 1);

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by