|
%%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 %%%%%%%%%%%%%%%%%%%%%
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 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 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 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. 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...
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 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...
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...
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...
j. Create a Conditional Probabilities Pivot Table (% of column) for ‘Gender’ and ‘Prefer Scent’, to know the probability that a customer will be of a certain gender given Yes or No preference for the scent. (For example, that if a customer comes into the store because they prefer the scent, what is the probability that the customer will be a female). Create another Conditional Probabilities Table (% of row) for ‘Gender’ and ‘Prefer Scent’, to know the probability that...