# Experiment Matlab

Title: Starting with MATLAB.

Equipment Required: Personal computer (PC) with windows operating system and MATLAB software

Theory:-

MATLAB is a powerful computing system for handling the calculations involved in scientific and engineering problems. The name MATLAB stands for MATrix LABoratory, because the system was designed to make matrix computations particularly easy. One of the many things about MATLAB (and which distinguishes it from many other computer programming systems, such as C++ and Java) is that you can use it interactively. This means you type some commands at the special MATLAB prompt, and get the answers immediately. The problems solved in this way can be very simple, like finding a square root, or they can be much more complicated, like finding the solution to a system of differential equations. For many technical problems you have to enter only one or two commands, and you get the answers at once.

Problems:-

Solve the following problems in the Command Window.

1) Calculate:

a)

((35.7*64)-7^3)/(45+5^2)

ans =

27.7400

b)

>> (5/4)*(7*6^2)+((3^7)/(9^3-652))

ans =

343.4026

c)

>> (2+7)^3+(273^2/3)+(55^2/3)

ans =

2.6580e+004

d)

>> (2^3)+(7^3)+(273^3/2)+(55^3/2)

ans =

10256747

e)

>> (3^7)*log(76)/((7^3)+546)/(910)^1/3

ans =

0.0039

f)

>> (43)*((250^1/4)+23)/exp(45+(3^3))

ans =

1.9780e-028

g)

>> (cos((5*pi)/6))^2+(sin(7*pi/8)^2)+(tan(pi/6*log(8)))/(7)^1/2

ans =

1.0330

h)

>> (cos(5*pi/6)^2)*(sin((7*pi)/8)^2)+(tan(pi*log(8)/6))/(7*5/2)

ans =

0.2191

1) Define the variable x as x = 13.5, then evaluate:

a)

>> ((13.5)^3)+(5*(13.5)^2)-26.7*(13.5)-52

ans =

2.9592e+003

b)

>> ((14*(13.5)^3)^1/2)/exp(3*13.5)

ans =

4.4379e-014

2) Define the variable x and z as x = 9.6, and z=8.1, then evaluate a)

>>...

Please join StudyMode to read the full document