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

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

 Akzeptierte Antwort

YUXING WANG
YUXING WANG am 12 Jul. 2018

1 Stimme

参照するファイルを間違えているとかでしょうか.

Weitere Antworten (1)

lattice
lattice am 11 Jul. 2018

2 Stimmen

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

Kategorien

Mehr zu 言語の基礎 finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018a

Community Treasure Hunt

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

Start Hunting!