変数内の行列を取り出すためのfor構文を作成したい。
Mostrar comentarios más antiguos
aとbという行列の変数があります。この変数の1列目と2列目を取り出すfor構文を作成したいです。
nameにlistの文字列を入れても、変数として認識しないため何か方法はありますか?
list = ['a';'b']
num_list = size(list);
for i=1:1:num_list(1)
name = list(i)
t = name(:,1);
s = name(:,2);
end
2 comentarios
Hernia Baby
el 25 de Feb. de 2022
これですとtとsが更新されます。情報は保持していなくてもいいのでしょうか?
HF
el 28 de Feb. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB 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!