creating variable of specified length and same values
5 ビュー (過去 30 日間)
古いコメントを表示
Hi,
How could I create a 4x1 variable of the value 1.2?
For example
1.2
1.2
1.2
1.2
0 件のコメント
採用された回答
その他の回答 (2 件)
Azzi Abdelmalek
2013 年 11 月 15 日
編集済み: Azzi Abdelmalek
2013 年 11 月 15 日
a=1.2;
a=a(ones(1,4))
%or
a=repmat(1.2,1,4)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!