Matlab assignment | Numerical analysis homework help

Create a Matlab script in an m-file which does all of the following. Name this file HW1.m. All commands

should be followed by a semi-colon; so that when the script is run, nothing gets displayed to the screen. To

receive full credit, you must use the exact variables names given below, and you must not have any terms

getting printed to the screen.

1. Your script should first clear all variables in the workspace using the “clear” command.

2. Define a variable “x” which is equal to 10 and a variable “y” which is equal to 50.

3. Create a length y vector (0,x,0,x,…,0,x) and call this vector “v”. (Try to create this using the variable

names “x” and “y” rather than their values of 10 and 50. This way if you later want to change the values,

it will be much easier.)

4. Create another length y vector called “w” containing equally spaced numbers between 0 and 10. (For

example, if y were equal to 6, then w would be equal to (0,2,4,6,8,10).)

5. Create a 9-by-9 matrix called “M” whose entries are all equal to 0 except that it has a single 12 in

the exact center of the matrix. (For example, if it were a 3-by-3 matrix, then the matrix would be [0,0,0;

0,12,0; 0,0,0].)

6. Make a vector “u” which is equal to the 5th column of M.

7. Make a length 9 vector “t” which is equal to (1,-3,9,-27,…).

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Choose Us

Quality Papers

We value our clients. For this reason, we ensure that each paper is written carefully as per the instructions provided by the client. Our editing team also checks all the papers to ensure that they have been completed as per the expectations.

Professional Academic Writers

Over the years, our Acme Homework has managed to secure the most qualified, reliable and experienced team of writers. The company has also ensured continued training and development of the team members to ensure that it keep up with the rising Academic Trends.

Affordable Prices

Our prices are fairly priced in such a way that ensures affordability. Additionally, you can get a free price quotation by clicking on the "Place Order" button.

On-Time delivery

We pay strict attention on deadlines. For this reason, we ensure that all papers are submitted earlier, even before the deadline indicated by the customer. For this reason, the client can go through the work and review everything.

100% Originality

At Essay USA, all papers are plagiarism-free as they are written from scratch. We have taken strict measures to ensure that there is no similarity on all papers and that citations are included as per the standards set.

Customer Support 24/7

Our support team is readily available to provide any guidance/help on our platform at any time of the day/night. Feel free to contact us via the Chat window or support email:

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Essay USA has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.


Essay Writing Services

At Essay USA, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.


Admission and Business Papers

Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.


Editing and Proofreading

Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.


Technical papers

We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.