Ex1 PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

3/19/23 7:58 PM Untitled 1 of 1

% qustion (1)
a=[1 2 5 7;-1 2 1 -2;4 6 8 0]
x=a(1,3)+a(3,2) % #a
c=3*a(:,3) % #b
v=(2*a(2,:))-(a(3,:)) % #c
n=sum(a) % #d
s=sum(a')' % #e
g=max(a) % #f
%ANSWER ON COMMAND WINDOW
%x = 11
%c = [15; 3 ;24]
%v =[ -6 -2 -6 -4 ]
%n =[ 4 10 14 5]
%s =[15;0;18]
%g =[ 4 6 8 7]

You might also like