Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

The goals of this project are: (1) to be able to input by hand and use MATLAB functions to generate vectors and matrices in MATLAB; (2) to use MATLAB to generate a reduced echelon form for a matrix; (3) to solve a system using the reduced echelon form of its augmented matrix; (4) to investigate the linear dependence of a set of vectors.

PROBLEM 1: a) Generate A a 5x4 matrix based on five historical dates you consider important. (Input this by hand; for example, if Time Travelling Terp was planning to use the birthdate of Gabriel Cramer of Cramer's rule fame, 31 July 1704, its matrix A will have a row or column containing the numbers 31, 07 ,17, 04.

b) Using MATLAB functions, generate B, a 5x4 matrix of ones,O a 5x4 matrix of zeroes and I, the 4x4 identity matrix.  Hint: To generate B, O, and I, search for help on the functions zeroes, ones, eye.

PROBLEM 2: Based on the matrices in problem 1, compute the following elements and then explain what they are in the corresponding matrix:

(a) a= A(2,4) ; (i.e. this is the        element/row/column of the matrix A)

(b) ac= A(:,4);

(c) ar= A(2,:).

Is it true or false that (d) a*B=B*a and (e) ac*I=I*ac? (here * stands for multiplication; if a side of an equality cannot be computed, the equality is false).

Explain your results for Problem 2 points (d) and (e ).

PROBLEM 3: (a) Generate a random 3x5 matrix ?? with entry integers uniformly between -100 and 100. Hint: Search for help on the functions rand and randi. (b) Put the matrix ?? in reduced echelon form using the command rref. (c) Are the columns of A linearly independent? Why or why not? (d) What is the span of the columns of A? Base your answer on your result at points 3b and your general knowledge of what the Span of 1, 2, 3, 4 linearly independent vectors should be.

PROBLEM 4: Water is flowing through a network of pipes (in thousands of cubic meters per hour) as shown in the figure below.

1129_pipes.png

(a) Set-up in MATLAB a matrix equation whose solution determines the water flow represented by

x??, ?? = 1, 2, ? , 7. Hint: to determine what system you are trying to solve, please remember that 'Volume in=Volume out", so for example the equation corresponding to the leftmost, top node is: 600 = x1 + x3;

(b) State what the rows and columns in the matrix represent;

(c) Based on the number of the equations and the number of unknowns, do you expect that the equation at point (a) has no solutions, exactly one solution or an infinity of solutions?

(d) Solve the equation and discuss your answer;

(e) Find the water flow (a vector containing values for all x??, ?? = 1, 2, ? , 7) when x5 = 1000 and x6 = 0.

PROBLEM 5: a) Using commands such as figure, ezplot and hold graph the lines representing each equation in the system

-3x - y = 3

6x + 2y = 1;

b) Use the graph to determine whether the system is consistent or inconsistent;

c) If the system is consistent, approximate from the graph the solution;

d) Solve the system algebraically, using MATLAB to help you, and compare your algebraic result with the approximation in part c);

e) Repeat problem 5 parts a-d for the system

2x - 8y = 3

0.5x + y = 0.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M91673139
  • Price:- $25

Priced at Now at $25, Verified Solution

Have any Question?


Related Questions in MATLAB

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Lab assignment - matlab matrix relationallogical operators

Lab Assignment - MATLAB Matrix, Relational/Logical Operators and Plotting This laboratory exercise/assignment will involve you 1) practicing multiplication operators in MATLAB; 2) practicing relational and logical operat ...

Recitation problems -1 determine the highest real root of

Recitation Problems - 1. Determine the highest real root of f(x) = 2x 3 - 11.7x 2 + 17.7x - 5 using the Newton-Raphson method with at least four iterations. Start with an initial guess of x 0 = 3. 2. Determine the real r ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Suppose that you have used some concept learning algorithm

Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying pop ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As