- Variables and Basic Computation Define the following variables in Matlab:
x = 10, y = −2, z = π.
- Save z in the file dat.
- Calculate x + y − z and save your answer in the file dat.
- Calculate x3 and save your answer in the file dat.
- Calculate e−y and save your answer in the file dat.
- Calculate cos(zy) and save your answer in the file dat.
- Matrices and Vectors Define the following matrices and vectors in Matlab:
1 −2
, x = 2 , y = 0 ,
−1 1
- Save x in the file dat.
- Save the second row of A in the file dat.
- Calculate x − y and save your answer in the file dat.
- Calculate Ay and save your answer in the file dat.
- Calculate A(x + y) and save your answer in the file dat.
Reviews
There are no reviews yet.