(a) To find: The result (manually) that will be displayed if the given command a = 2 : 2 : 20 is executed by MATLAB; if the results are correct or not by executing the commands with MATLAB.
(a) To find: The result (manually) that will be displayed if the given command a = 2 : 2 : 20 is executed by MATLAB; if the results are correct or not by executing the commands with MATLAB.
Quantities that have magnitude and direction but not position. Some examples of vectors are velocity, displacement, acceleration, and force. They are sometimes called Euclidean or spatial vectors.
Chapter 2, Problem 34P
To determine
(a)
To find:
The result (manually) that will be displayed if the given command a=2:2:20 is executed by MATLAB; if the results are correct or not by executing the commands with MATLAB.
To determine
(b)
To find:
The result (manually) that will be displayed if the command b=a(4:8) is executed by MATLAB; if the result is correct or not by executing the commands with MATLAB.
To determine
(c)
To find:
The result (manually) that will be displayed if the command c=a(1:2:7) is executed by MATLAB; if the result is correct or not by executing the commands with MATLAB.
To determine
(d)
To find:
The result (manually) that will be displayed if the command d=a(8:−1:4) is executed by MATLAB; if the result is correct or not by executing the commands with MATLAB.
To determine
(e)
To find:
The result (manually) that will be displayed if the command e=[a(1:5);a(6:10)] is executed by MATLAB; if the result is correct or not by executing the commands with MATLAB.
To determine
(f)
To find:
The result (manually) that will be displayed if the command f=[a(2:5)'a(6:9)'] is executed by MATLAB; if the result is correct or not by executing the commands with MATLAB.