フィルターのクリア

Increasing numerator and denominator of vectors

3 ビュー (過去 30 日間)
Seba.V
Seba.V 2019 年 7 月 24 日
コメント済み: Stephen23 2019 年 7 月 24 日
How do I generate a vector of the form 0, 1/2, 2/3, 3/4, 4/5...9/10?

採用された回答

madhan ravi
madhan ravi 2019 年 7 月 24 日
[0,(1:9) ./ (2:10)]
  2 件のコメント
madhan ravi
madhan ravi 2019 年 7 月 24 日
Stephen23
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 ExchangeMATLAB Code Analysis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by