Q:

Using the colon operator and also the linspace function, create the following row vectors:

0

Using the colon operator and also the linspace function, create the following row vectors:

 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> -5:-1

ans =

-5    -4       -3         -2        -1

>> linspace(-5,-1,5)

ans =

-5            -4           -3         -2      -1

>> 5:2:9

ans =

5        7          9

>> linspace(5,9,3)

ans =

5               7            9

>> 8:-2:4

ans =

8           6             4

>> linspace(8,4,3)

ans =

8         6             4

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now