A row vector called D with all the numbers between 0 and 2 in steps of 0.1

4 vues (au cours des 30 derniers jours)
Kelark Azer Habashi
Kelark Azer Habashi le 14 Jan 2018
I am confused weather the answer should be D = 0:0.1 :2 or D = 0.1:0.1 :2

Réponses (1)

Cam Salzberger
Cam Salzberger le 26 Fév 2018
Well, it depends on how you interpret the word "between". However, in these types of questions, it typically means "between and inclusive of". So I believe that 0:0.1:2 would be correct.

Catégories

En savoir plus sur Get Started with MATLAB 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!

Translated by