ループを使わず長さの違う1つの配列の作成方法を教えてください
Mostrar comentarios más antiguos
例として以下のような配列を作成したいです.
a=[2;3]; %個数
b=[1;78]; %[グラム]
という条件で
c=[1;1;78;78;78];
という形を作りたいです.
これをループなしで出したいのですが,どうすればよろしいでしょうか
Respuesta aceptada
Más respuestas (1)
翔 池田
el 22 de Abr. de 2021
0 votos
1 comentario
Hernia Baby
el 22 de Abr. de 2021
解決してなによりです。
私の回答を採用していただけると、
本件クローズできるのでよろしければお願いいたします。
Categorías
Más información sobre ループと条件付きステートメント 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!