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 programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

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

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

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

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

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

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 matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

  • 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