G 4 7 0 15 5 1 3 0 6 2 17 16 creates matrix 3 by 4 4 by 3 3

G = [4, 7, 0, 15; 5, -1, -3, 0; 6, 2, 17, 16] creates____ matrix 3 by 4 4 by 3 3 by 3 Write the command to find cosine in radians of a values. Assign these values to aa >> aa = cos(a) >> aa = cos d(a) Write a command to determine the number of elements of vector X. >> dim(X) >> size(x) >> length(X) If X = (2; -1; 0), Y - [x; 5; 0] will be a ___ vector. 1 by 3 3 by 1 5 by 1 6 by 1 Build a \"row\" vector m that has five elements, each with the value 0. >> m = zeros(S) >> m = zeros (1, 5) >> m = zeros(5, 1)

Solution

Q19:
G = | 4 7 0 15 |
| 5 -1 -3 0 |
   | 6 2 17 16 |
  
   It is 3 by 4 matrix. (3 rows, 4 column ) each row is separated by semicolon (;)
  
Q 20
aa = cos(a)
cos a find value in radians
cosd find value in degrees

Q 21
length(X) will give number of elements of vector

Q 22
Y = [ 2
-1
   0
   5
   0]
  
It is 5 by 1 vector.

Q 23
m = zeros(5,1) gives a row vector

(m = zeros(5) give a matrix of 5*5, m = zeros(1,5) gives a coumn vector)

 G = [4, 7, 0, 15; 5, -1, -3, 0; 6, 2, 17, 16] creates____ matrix 3 by 4 4 by 3 3 by 3 Write the command to find cosine in radians of a values. Assign these val

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site