MATLAB ( easy for beginners) due today 11 pm ! In 9 hours

Question Description


MATLAB Assignment 1


Carefully read through and complete the following assignment. The work should be done

individually


and

completed during your recitation time


.



Goals:




Become familiar with the

Matlab


environment





Learn to use the help feature.




Learn to create different types of variables


: scalars




Learn to do mathematic operations in

Matlab





Become familiar with some

Matlab


built-in functions



——————————————————————————————————————————


1.


Open up

Matlab


on the computer.


Familiarize yourself with the

Matlab


layout. Can you find the Command Window, the Workspace,

Current Folder,

the Command History,

the

Matlab


Editor,

and the Home tab?


Ask your TA if


you are unable to find these


windows


and tab


.








2.

One


way to record your session in

Matlab


is using

the

diary


command


. At the command prompt (>>) in your command window, type the following:





>>

help diary


to


learn more about the diary


command.

Note, don’t type “>>” that is just to indicate the command prompt.


3


. Create a diary file named

FirstName_LastName_Rec#_MATLAB1.txt


by doing the following command:


>>

diary FirstName


_LastName_Rec#_MATLAB1.txt


(


note


where is says

FirstName


and

LastName


in the filename, put your first and last name, respectively. Where it has the # put your recitation number


: 301 or 302


.



4


.

Let us try some simple operations. Carry-out the following commands at the command prompt:


>> 3 + 4


>> 4 * 5


>> 12.0/3.0


What is 100 divided by 2? Use

Matlab


to determine the answer


.


5


.

Let us try declaring some variables.

Carry-out the following commands:



>>

num


= 3


>>

dec


= 5.6


>>

myString


= ‘I am a CStudent





“;” in

Matlab


is used to suppress output of a command to the screen. Repeat the

three commands


above but with “;” at the end of each command


, i.e.


:



>>

num


= 3;


>>

dec


= 5.6;


>>

myString


= ‘I am a College Student’;


What happens now?


6


.

W


rite the following lines of code:


>>

a = 5;


>>

b = 4;


>>

c =

a+b


;



>>

disp


(


c)


7


.

What does the

disp


command do? Do

help

disp


to learn more about the display command.

D


escribe what the code above in 6


did.






8


.

Write the following lines of code:


>> x =

9


;


>> y = 5


;


>> z


1


= x * y


;


>> z2 = x/y;


>> z3 =

rem


(x, y)


;


>>


z4 =

sqrt


(x)


;


>>

disp


(


z


1


)


;


>>

disp


(


z2);


>>

disp


(


z3);


>>

disp


(


z4);


9


. What does the code given above in 8

do?


10.

Matlab


play:

Try

some other commands

to become familiar with the environment. Example


:

round


(


1.5), cos(2),

clc


.







11. Type the diary command again to save the file and stop recording all your command entries.


Submit your FirstName_LastName_Rec#_


MATLAB


1


.txt


file


and your


answers to the questions above in


a separate file name: FirstName_LastName_Rec#_MATLAB1_ans


.doc




via Blackboard by the end of this recitation.


We offer the bestcustom writing paper services. We have done this question before, we can also do it for you.

Why Choose Us

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How it Works

  • Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.