エラー:位置 1 のインデックスが配列範囲を超えています、について

3 visualizzazioni (ultimi 30 giorni)
Yusei Ogawa
Yusei Ogawa il 10 Lug 2018
Risposto: YUXING WANG il 12 Lug 2018
エラー:位置 1 のインデックスが配列範囲を超えています(25 を超えてはならない)とはどういう意味でしょうか? コードは以下です。
dataC = xlsread('SH.xlsx','C','A2:I50');
Cth=dataC(25:45,1);

Risposta accettata

YUXING WANG
YUXING WANG il 12 Lug 2018
参照するファイルを間違えているとかでしょうか.

Più risposte (1)

lattice
lattice il 11 Lug 2018
エクセルのデータに 50 行まで値が入ってないのではないでしょうか. 読み込んだ dataC の配列のサイズをが 25 行までしかないとか.

Categorie

Scopri di più su 言語の基礎 in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!