Index exceeds matrix dimensions.

2 ビュー (過去 30 日間)
Aziza Zaouga
Aziza Zaouga 2018 年 6 月 24 日
コメント済み: Walter Roberson 2018 年 6 月 25 日
Dear all, I have this array, "" ONU_queueNP{N} = [] ""
ONU_queueNP{i} = [ONU_queueNP{i}; ArrivingTime PacketSize];
and in a line after, I have these instructions:
Instant = ONU_queueNP{i}(1,1);
Size = ONU_queueNP{i}(1,1);
So, in Instant' I get the error "Index exceeds matrix dimensions" knowing that this was used before and it does not give an error. What can be the problem please?
Thank you in advance.
  5 件のコメント
Aziza Zaouga
Aziza Zaouga 2018 年 6 月 25 日
Thanks again, But even when I putted [a,b] = size(ONU_queueNP{i})]; I got the same error 'Index exeeds matrix dimensions'. does it mean that there is no column i? thank you
Walter Roberson
Walter Roberson 2018 年 6 月 25 日
You could first check size(ONU_queueNP) . If you get index exceeding matrix dimension on that, then check whether you accidentally created a variable named "size"

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by