Question

Use the create_matrix function from the tutorial file, along with a function a (i, j) (which...

Use the create_matrix function from the tutorial file, along with a function a (i, j) (which you will have to create) to produce the following 17 × 17 matrix. Then find its determinant.
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
6 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1
8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1
9 9 9 9 9 1 1 1 1 1 1 1 1 1 1 1 1
10 10 10 10 10 10 1 1 1 1 1 1 1 1 1 1 1
11 11 11 11 11 11 11 1 1 1 1 1 1 1 1 1 1
12 12 12 12 12 12 12 12 1 1 1 1 1 1 1 1 1
13 13 13 13 13 13 13 13 13 1 1 1 1 1 1 1 1
14 14 14 14 14 14 14 14 14 14 1 1 1 1 1 1 1
15 15 15 15 15 15 15 15 15 15 15 1 1 1 1 1 1
16 16 16 16 16 16 16 16 16 16 16 16 1 1 1 1 1
17 17 17 17 17 17 17 17 17 17 17 17 17 1 1 1 1
18 18 18 18 18 18 18 18 18 18 18 18 18 18 1 1 1
19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 1 1
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 1
0 0
Add a comment Improve this question Transcribed image text
Answer #1


88Matlab code for creating matrix clear all close all Screating 17 X 17 matrix for i=1:17 for j=1:17 Ali,j)=1; end end a=5; f

%%Matlab code for creating matrix
clear all
close all

%creating 17 X 17 matrix
for i=1:17
    for j=1:17
        A(i,j)=1;
    end
end
a=5;
for i=2:17
  
    A(i,1:i-1)=a;
    a=a+1;
  
end

fprintf('A matrix is\n')
disp(A)

fprintf('Determinant of A=%f\n',det(A))

%%%%%%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%%%%%%%

Add a comment
Know the answer?
Add Answer to:
Use the create_matrix function from the tutorial file, along with a function a (i, j) (which...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT