Question: In Problems 1 - 4 , without the use of software, replace the question mark with what the output would be if the scripts were

In Problems 1-4, without the use of software, replace the question mark with what the
output would be if the scripts were executed in MATLAB.
1
A=[15-10;2-374;1064;-1109];
w1=[1;0;-1;0];w2=[3;0;-2;1];
B=A;
B(:,2:3)=[w1,w2];
B=?
3
B=diag(diag(A,1),1)+diag(diag(A,-1),-1);
C=diag(diag(A))+triu(B)
C=?
 In Problems 1-4, without the use of software, replace the question

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!