Question: %% SOLVE THE SYSTEM OF TWO EQUATIONS IN TWO UNKOWNS OFR c1 and c2 % c1 + c2 = 1 % c1*phi + c2*(1-phi) =

%% SOLVE THE SYSTEM OF TWO EQUATIONS IN TWO UNKOWNS OFR c1 and c2

% c1 + c2 = 1

% c1*phi + c2*(1-phi) = 1

%% DEFINE PHI

phi = ;

%% PUT THE SYSTEM IN THE FORM OF A*x = b

% where A is the 'matrix' or array of coefficients and

% b is the vector of knowns. x is then the vector of unknowns

%% FORM A MATRIX OF THE COEFFICIENTS, CALL IT A

A = [ ; ];

%% FORM THE VECTOR OF KNOWNS, CALL IT b

% b has to be a column vector so it should list vertically

% To determine if you have a column vector try the function iscolumn(b)

b = ;

%% SOLVE THE SYSTEM FOR THE UNKNOWNS x

x = A\b;

%% x is now a vector. Put the values of x into c1 and c2

c1 = ;

c2 = ;

%% CREATE SOME OUTPUT

('The values of c1 and c2 are %f and %f, respectively ', ,c2);

% Note that in the fprintf statement we used the symbol '%f', instead of '%d'.

% That's because the values are not integers anymore. They are floating point

% numbers, what you probably know as real numbers.

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!