Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a semi-guided exercise where you are to make a diary of a MATLAB session that you are to submit on the due date.

This is a semi-guided exercise where you are to make a diary of a MATLAB session that you are to submit on the due date. The guided part of the exercise deals with telling you how to submit the comments and when to clear MATLAB of the variables. The rest of the work requires that you write the proper expressions to get the final results.

On your submissions, whenever a final answer is required (after you have completed the task of making the diary), please open it up as a Notepad (MAC User, the App is TextEdit), skip about 4 or 5 spaces after each answer and then type in UPPERCASE the text ANS. In that way I can tell what you have done.

Because you are getting familiar with MATLAB and because you are keeping a diary, typos are allowed, just so long as your final answer makes sense. If you can delete the typos for the text, that would be awesome, and it would give you a shot at a better grade. Make sure, though that you keep the relevant text in your final submission. You may, however, first want to save the original with all your Command Window errors as a reference.)

Once done, submit the Assignment within the Canvas environment as you did with the Sample Assignment.

Initial commands:

Use your Hack folder to do the work. You can later save this work in a folder for the homework assignments.

Use the command format compact to cut down on the whitespace MATLAB could create.

Start the diary with the command diary 'Assignment1.txt' to start the diary in your directory.

Enter your name as a comment, and then enter the text Assignment #1 as a comment on the next line.

Type in the command pwd (print working directory) to verify where your directory is.

Type in the command get(0, 'Diary') and look at MATLABs answer to verify that the diary is on. That should be the answer MATLAB returns if it is on.

First set of calculations

Skip a line, and then write the comment First Set.

(Note: the calculations and work you have to do are not numbered. Just do them.)

Set variable x equal to 8, variable y equal to 15, and variable z equal to 6.

Then use MATLAB to evaluate the following expressions:

Clear all variables, and then skip a line.

Second set of calculations

Write the comment Second Set.

Using a single variable x, find out the value of the polynomial 4x3 -x2 + 5x -2 when x is equal to 2.1, 3.2 and 1+i.

Clear all variables (all single one of them) and skip a line.

Third set of calculations

Write the comment Third Set.

Using the methods shown in the class (on the handout diary), declare some variables (a1, b1, c1, a2, b2, and c2) to solve the following simultaneous linear equation:

2x + 4y = 12 ; 8x 3y = 10

After you have solved the equation, substitute the answers into the expressions that represent the original equation to prove that the solution is correct.

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

MFDBS 89 2nd Symposium On Mathematical Fundamentals Of Database Systems Visegrad Hungary June 26 30 1989 Proceedings

Authors: Janos Demetrovics ,Bernhard Thalheim

1989th Edition

3540512519, 978-3540512516

More Books

Students also viewed these Databases questions

Question

Find the covariance and correlation between a bX and c dY .

Answered: 1 week ago

Question

Mutarotation Mechanism -talose - talose

Answered: 1 week ago