This action might not be possible to undo. Are you sure you want to continue?

For submission 19th Feb.

These questions are more open ended to train you how to approach a problem and decide for yourself what kind of code you need to write to find a solution. You will only need to write a small amount of code for each, but think about the structure of the script and the variables you will need before you start. Your answers should be in the form of a very brief „mini report‟ of one or two paragraphs, with plots and results as required. You will be marked not just for having the right answer, but for sensible code, clear commenting in the code, and how you use plots, labels, etc. to support your answer. Please include a copy of your script, but you need not show all intermediate output, like lists of vectors, etc.

**Question 1: System of linear equations
**

x1 x 2 5 x3 4

(a) Consider the system of linear equations, 3x1 2 x 2 x3 8

. Write this system in

2 x1 x 2 1x3 3 matrix form, Ax=b. First show whether there is a valid solution for this system (HINT: A has to be nonsingular) then show that the system can be solved in the following ways:

I. Find the solution using MATLAB left division command “\“. II. Find the solution by using the inverse of the coefficient matrix x A 1b .

III. Find the solution via the transposed system x T b T A T in which A T A T this case we use the right division sign “/”

1

. In

Each of the equations can be rearranged in the form x3=…… Do this and then plot each of the planes in a 3D plot. Add the point which forms the solution to these equations and use your plot to explain what the solution means. You can change the viewing angle of a 3D plot with your mouse by clicking on the Rotate3D button in the plot window. (HINT: You will need to use the „meshgrid‟ and „mesh‟ commands to create these plots.)

x1 x 2 5 x3 4

**(b) Now repeat the procedure in (a) for the following equations, 3x1 2 x 2 x3 8
**

2 x1 2 x 2 10 x3 5

.

Discuss your results using the 3D plots, as before.

the major and minor axes and their labels should be shown in the rotated plot.5. Again. (a) Write a script to draw an ellipse using x=acos. You will need to do some manipulation! . Draw a plot of the polynomial in an appropriate range. using labels and colours as needed.Question 2. Discuss how the number of real roots changes.y_new): You won‟t be able to apply this matrix directly to the vectors for x and y. turning points or points of inflection. Plot and label the major and minor axes. Show the original ellipse and one rotated by 45o on the same plot. Polynomials (a) Write a script to solve the following polynomial: . HINT: For anticlockwise rotation in the x-y plane of an angle θ you can use the following relation to go from the co-ordinate pair (x. Question 3: Plot an ellipse.y) to the new co-ordinates (x_new. y=bsin. b=3. The script should accept inputs to dynamically change the size of the major (a) and minor (b) axes.5 and 1. and a graph for a=5. Run the script and try changing this value between 0. As an answer you should show your script. Indicate near the points on the plot whether the roots are simple roots. Draw a plot which shows the polynomial for a couple of different values. (b) Now change the coefficient of to accept a dynamic input from the user when the script is run. and mark the roots on the plot. . Plot it with an appropriate scale (so that the relative lengths of a and b are clear) and add labels and titles as needed. (b) Now use the rotation matrix below to rotate the ellipse by an angle in degrees defined dynamically by the user.

- Roof Truss Installation Manual 09_2011.pdf
- GS_2006Edition_VOLUME_2_26Feb07.pdf
- 282981808-Structural-Engineers-Pocket-Book-3rd-Edition.pdf
- Assured Shorthold Tenancy Agreement
- Life in the Uk Summary
- Presentation Script and Info
- Wind Turbine Foundations
- EG5085 Course Handbook
- 15ways
- Ppt 10 Advanced
- BU5034 Course Organisation Slides(1)
- CivilScotland June 2014
- Tesco presentation
- Printed - 5 - 109 Interview Questions and Answers - Part 1 of 2
- Printed - Interviewing
- Historic Timber Resin Repair
- Ultrasonic, Electric and Radar Measurements for Living Trees
- DC Machines2
- Readme
- EG40JH Advanced Structural Analysis Exam Paper (1)
- Open channel flow
- Technologies for Wood Preservation in Historic
- Wood Preservation 5.2 Heritage
- Wood Preservation 5.1 Heritage
- VOL 2 Rehab Guide

Sign up to vote on this title

UsefulNot usefulMatlab tutorial

Matlab tutorial

- Polynomial Parametrization for the Solutions of Diophantine Equations and Arithmetic Groups
- Uzawa-SOR Method for Fuzzy Linear System
- PRA PEPERIKSAAN 2013 6 RENDAH
- lesson plan 4
- Linear Algebra NYC
- Scientific WorkPlace Demonstration Document
- Student Study Guide Ba301
- MATH10 Lesson 9
- ansindex
- sol_may
- EAL Syl ComMaths
- Linear Equation Definition
- ALL BIM
- Cubic Bezier Curves
- 22 Ref-2002944
- 2009 Review Packet Algebra 2
- LRS2.pdf
- Algebra Test
- 02-equi
- Polynomial time algorithm for Diophantine equations in one variable.pdf
- Lec 10 Gauss Elimination1
- Appa
- Algebra I
- Solvlineq
- Virtual Element Methods for Plate Bending Problems
- ENG1091 - Lecture Notes 2011
- Unit-9
- CFD graphical interface in MATLAB.pdf
- 21.Algebra
- Vs a Gnd vs Well Identif
- Matlab tutorial

Are you sure?

This action might not be possible to undo. Are you sure you want to continue?

We've moved you to where you read on your other device.

Get the full title to continue

Get the full title to continue reading from where you left off, or restart the preview.