You are on page 1of 1

Computermath

Jrn Kretschmer








1.

(
(
(

=
1 25 2
16 2 8
4 6 3
X

- CreatethismatrixinMatlab
- Deleteline2andcolumn3(Hint:Todeletealineorcolumn,youcanassignanempty
matrixtoit)
- Createamatrix
(

=
X X
X X
V ;trythesameoperationbyusingthecommand
repmat(seeMatlabHelpforfurtherinstructions)


2.
(
(
(

=
5
4
6
8
1
2
X ,
(

=
3 9 8
1 4 2
Y ,
(

=
5 7 2
3 4 1
Z

CalculateX*YandZ.*YbyhandandtestyourresultbyusingMatlab


3.
(
(
(

=
2 0 2
6 2 1
4 5 3
X ,
(
(
(


=
4 0 3
6 2 5
1 2 0
Y

Calculate X/Y by hand and test your result by using Matlab. If you can not find the correct
resultbyhand,trytocheckthecorrectnessofyourcalculationsstepbystepwiththehelpof
Matlab.


4.

| | 1 3 4 7 8 7 4 11 3 10 5 1 2 = X

- Eliminateallvaluesthatarelargerthan7orsmallerthan0byusingthe<and>
operator
- Testthefunctionsofthe<=,>=,==and~=operators

You might also like