Question: Assignment # 1 ( Vectors & Matrices ) If M = [ 3 1 0 - 1 7 7 ] & N = [ 4

Assignment #1
(Vectors & Matrices)
If M=[310-177]&N=[403-910] perform the following commands on MATLAB:
1- Add M to N and assign it to variable "A".
2- Find the scalar multiplication of M to N(multiply each elet. with corresponding elet.) and assign it to variable " B ".
3- Find the scalar Division of M to N and assign it to variable "C".
4- Sort N and assign it to variable "D".
5-Sort M in descending order and assign it to variable "E".
6- Create a Raw vector "F" consisting of the elements of M and N.
7- Create M(7:9)=[01-1]
8- Create N(2:3)=[]
9- Using linearly spaced function, create a row vector "O" starting from value 22 till value 30 Of length 9.
10- Create a Matrix "W" consisting of "O" as its first row and" M" as the second raw.
11- Find dimension of Matrix W then assign it to variable "a"; then assign variable " b " to Find "#rows" in W and assign variable "c" to find "# columns" in W.
12- Assign value 12 to W(2,5)
13-W(3,1:4)=[14-15]
14-W(1,1:3)=0
15- W(3,:)=[]
16- W(:,[1,7])=[]
17- inv(W) and assign it to variable" d".
18-W(2,end) and assign it to variable" e.
19-f=max(W);g=max(max(W));h=??(W); i=prod(W).
using matlab
Assignment # 1 ( Vectors & Matrices ) If M = [ 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!