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
  • 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...

  • Cork price: 16 10 15 10 17 11 14 13 11 14 11 16 18 16...

    Cork price: 16 10 15 10 17 11 14 13 11 14 11 16 18 16 10 17 14 14 16 7 10 12 19 15 16 14 9 12 21 13 10 16 12 16 13 17 17 13 14 18 11 12 15 16 13 18 16 17 12 12 14 9 11 14 19 13 11 17 11 13 15 14 18 18 18 12 10 11 13 14 11 14 18 13 13 19 17 14...

  • Cork price: 16 10 15 10 17 11 14 13 11 14 11 16 18 16...

    Cork price: 16 10 15 10 17 11 14 13 11 14 11 16 18 16 10 17 14 14 16 7 10 12 19 15 16 14 9 12 21 13 10 16 12 16 13 17 17 13 14 18 11 12 15 16 13 18 16 17 12 12 14 9 11 14 19 13 11 17 11 13 15 14 18 18 18 12 10 11 13 14 11 14 18 13 13 19 17 14...

  • Are all disciplines in the University equally boring or there are some more boring than others?  To...

    Are all disciplines in the University equally boring or there are some more boring than others?  To answer that question, a study performed at Columbia University counted the number of times per 5-minute interval when professors from three different departments said “uh” or “ah” during lectures to fill gaps between words.  These counts were used as a proxy (approximation) for the measure of class boredom.  The data from observing one hundred of 5-minute intervals from each of three departments’ professors were recorded in...

  • Stdio.h format. Proper commenting please. Needs to be able to be saved as a .C file....

    Stdio.h format. Proper commenting please. Needs to be able to be saved as a .C file. Thanks in advance. Please do not copy and paste any of the other answers already on this site as they do not work. If you can't do it please don't answer my question. 1) A matrix M with i rows, j columns can be transposed into a matrix N having j rows and i columns by simply setting the value of Nob equal to...

  • Suppose there are 100 identical firms in the market and the luggage industry is perfectly competitive....

    Suppose there are 100 identical firms in the market and the luggage industry is perfectly competitive. What does the market supply curve look like? 20 19 18 17 16 15 14 13 12 11 A 10 9 8 7 6 5 4 20 19 18 17 16 15 14 13 12 11 A 10 8 7 6 2 1 0 0 0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 2 3 4 5...

  • c program that takes a seridalized text file of a tree of up to 32 nodes...

    c program that takes a seridalized text file of a tree of up to 32 nodes and builds its stick diagram as shown. Example 1: Input text file: 10 6 1@5@@8@@ 12 @ 13 @ 20 19 16 @@@@ Output text file: 10 / 12 6 / 1 - 8 13 - - 5 20 19 - 16 Input text file: 10 8 1@7@@@@ 18 11 @ 16 13 @ 14 @@@23 21 @@@ Output text file: 10 8 18...

  • Therefore, for this program you will read the data in the file named weatherdata_2.txt into arrays...

    Therefore, for this program you will read the data in the file named weatherdata_2.txt into arrays for the wind speed and for the temperature. You will then use the stored data to calculate and output the average wind speed and the average temperature. Create a constant with a value of 30 and use that to declare and loop through your arrays and as a divisor to produce your averages. Here is the data file (below). 1. 14 25 2. 12...

  • 1. estimate a linear cost function 2. estimate a quadratic cost function 3. estimate a cubric...

    1. estimate a linear cost function 2. estimate a quadratic cost function 3. estimate a cubric cost function 1 A B с D 1 Cost data for a lumber mill 2 3 TC 4 11 5 32 2 6 93 3 7 248 4 8 575 5 9 1176 6 10 2177 7 11 3728 8 12 6003 9 13 9200 10 14 13541 11 15 19272 12 1626663 13 17 36008 14 18 47625 15 19 61856 16 20...

  • Review the 6 karyotypes in Figure 10 and determine the chromosomal disorder. Record the chromosomal disorder...

    Review the 6 karyotypes in Figure 10 and determine the chromosomal disorder. Record the chromosomal disorder in Data Table 3. Describe the genotype of each chromosomal disorder and record in Data Table 3. Describe the phenotype of each chromosomal disorder and record in Data Table 3. Data Table 3: Karyotype to Genotype to Phenotype # Chromosomal Disorder Genotype Phenotype 1 2 3 4 5 6 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7...

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