Info
この質問は閉じられています。 編集または回答するには再度開いてください。
create a vector with specified entries
2 ビュー (過去 30 日間)
古いコメントを表示
Hello, I need to create the following vectors:
x=[0 0 0 ...0] and y=[h h h...h]
where h is a constant that I declared. Both vectors need to have a length of 100
0 件のコメント
回答 (1 件)
Star Strider
2014 年 11 月 29 日
Use the zeros and ones funcitons, respectively:
x = zeros(1,100);
y = h*ones(1,100);
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!