question5 ece

Anonymous
plain_text
11/08/2021 10:56 PM
528 B
14
Indexable
%answer 1 starts here
a = [0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0
    0,0,0,0,0,0,0,0,0,0];

a(2,3) = 3;
a(5,7) = -6;
a(4,9) = pi;
a(7,3) = pi/2;
%answer 1 ends here

%anwer 2 starts here
s = sparse(a);
%answer 2 ends here
Editor is loading...