Increasing numerator and denominator of vectors

2 Ansichten (letzte 30 Tage)
Seba.V
Seba.V am 24 Jul. 2019
Kommentiert: Stephen23 am 24 Jul. 2019
How do I generate a vector of the form 0, 1/2, 2/3, 3/4, 4/5...9/10?

Akzeptierte Antwort

madhan ravi
madhan ravi am 24 Jul. 2019
[0,(1:9) ./ (2:10)]
  2 Kommentare
Stephen23
Stephen23 am 24 Jul. 2019
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Code Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by