Increasing numerator and denominator of vectors
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How do I generate a vector of the form 0, 1/2, 2/3, 3/4, 4/5...9/10?
0 commentaires
Réponse acceptée
madhan ravi
le 24 Juil 2019
[0,(1:9) ./ (2:10)]
2 commentaires
Stephen23
le 24 Juil 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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Code Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!