matlab manaual-1
TRANSCRIPT
-
7/24/2019 matlab manaual-1
1/15
TO ENTER AN EXPRESSION AND SOLVE
Aim:to enter an expression and solve using matlab sot!are
Apparatus:personal "omputer
#atlab sot!are
Program:
"l"$
"lose all$
"lear all$
x%input&'enter value o x'($
)%x*+,sin&x($
-%"os&x($
Ans!er%).-
-
7/24/2019 matlab manaual-1
2/15
Result:
-
7/24/2019 matlab manaual-1
3/15
TO /OR0 /IT1 ARRA2S AND #ATRI3ES
Aim:to ind determinant4 transpose4 inverse o t5e matrix
Apparatus:personal "omputer
#atlab sot!are
Programme:
"l"$
"lear all$
"lose all$
x%input&'enter matrix x%'($
disp&'given matrix is%'($
disp&x($
)%det&x($
disp&'det o matrix is%'($
disp&)($
-%x'$
disp&'transpose o matrix is%'($
disp&-($
i%inv&x($
disp&'inverse o matrix is%'($
disp&i($
-
7/24/2019 matlab manaual-1
4/15
Result:
-
7/24/2019 matlab manaual-1
5/15
TO SOLVE SI#6LTANEO6S E76ATIONS 6SIN8 #ATLA9
Aim: To Solve simultaneous e:uations using #atlab
Apparatus:personal "omputer
#atlab sot!are
Programme:
"l"$
"lear all$
"lose all$
A%input&'enter "oei"ient matrix A%'($
9%input&'enter "onstant matrix 9%'($
X%inv&A(;9$
disp&'solution to t5e given e:uations is%'($
disp&X($
-
7/24/2019 matlab manaual-1
6/15
RESULT:
-
7/24/2019 matlab manaual-1
7/15
-
7/24/2019 matlab manaual-1
8/15
Programme:
"l"$
"lear all$
"lose all$
A%input&'enter "oei"ient matrix A%'($
9%input&'enter "onstant matrix 9%'($
I%inv&A(;9$
disp&'"urrents in t5e mes5s is%'($
disp&I($
Result:
-
7/24/2019 matlab manaual-1
9/15
TO PLOT A 8RAP1 9ET/EEN T/O VARIA9LES
Aim> To plot sine !ave using matlab
Apparatus> personal "omputer
#atlab sot!are
Program:
"l"$
"lose all$
"lear all$
t%@>@@@B>B$
%input&'enter value o re:uen")'($
a%input&'enter value o amplitute'($
)%a;sin&+;pi;;t($
plot&t4)($
xlabel&'time'($
)label&'sine !ave'($
title&'sine !ave'($
-
7/24/2019 matlab manaual-1
10/15
Result:
-
7/24/2019 matlab manaual-1
11/15
TO PLOT #6LTIPLE
-
7/24/2019 matlab manaual-1
12/15
TO 6SE
-
7/24/2019 matlab manaual-1
13/15
)label&')'($
-label&'-'($
title&'plot using e-sur "ommand'($
igure$
-%'G.&B,x*+,)*+('$
e-sur"&-4H4H4H4HF(
xlabel&'x'($
)label&')'($
-label&'-'($
title&'plot using e-sur" "ommand'($
Publishing Report:
To publis5 a report go to
-
7/24/2019 matlab manaual-1
14/15
-
7/24/2019 matlab manaual-1
15/15