for文中で30行1列の関数から指定した要素を抜き出そうとすると「インデックスが配列要素数(1)を超えています」というエラーが出ます。
Mostrar comentarios más antiguos
H = [1:1:10]';
count_number = 1;
for loop = 0:10
H = H(count_number)
count_number = count_number + 1;
のようなプログラムを組んでいますが,エラーコードに「インデックスが配列要素数 (1) を超えています。」と表示されます。
for文内でH = H(count_number) のようにある特定の値を繰り返し次々と取り出すにはどうしたら良いでしょうか
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!