Increasing numerator and denominator of vectors
3 ビュー (過去 30 日間)
古いコメントを表示
How do I generate a vector of the form 0, 1/2, 2/3, 3/4, 4/5...9/10?
0 件のコメント
採用された回答
madhan ravi
2019 年 7 月 24 日
[0,(1:9) ./ (2:10)]
2 件のコメント
Stephen23
2019 年 7 月 24 日
Also:
>> (0:9)./(1:10)
ans =
0 0.5 0.66667 0.75 0.8 0.83333 0.85714 0.875 0.88889 0.9
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Code Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!