Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

%% 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions