vector with spacing (predefined)
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Venkata Brahma Teja Haridasu
le 18 Avr 2021
Modifié(e) : Venkata Brahma Teja Haridasu
le 18 Avr 2021
0 commentaires
Réponse acceptée
David Fletcher
le 18 Avr 2021
Maybe I am missing something, but this?
initial_value=-25;
step_size=5;
final_value=15;
vector=initial_value:step_size:final_value
0 commentaires
Plus de réponses (1)
the cyclist
le 18 Avr 2021
Does
v = -25:5:15
do what you want? Or maybe you meant
initial_value = -25;
step_size = 5;
final_value = 15;
v = initial_value : step_size : final_value
If neither of those is what you meant, then I don't understand.
1 commentaire
Voir également
Catégories
En savoir plus sur Variables 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!