LAB 1 Matlab
LAB 1 Matlab
Workspace
CommandWindow
Current
Folder
Command
History
Note that variable names in MATLAB are case sensitive, so X and x are not equal.
• This, however, does not imply any permanent relationship between x and y. If we
change x, the value of y does not change.
Complex number:
Entering complex numbers from the keyboard has to be done carefully. The symbol "i"
identifies the imaginary part and has to be typed immediately after the numerical value of
the imaginary part: for example, 2 + 3i . If you insert a space - for instance, 2 + 3 i - it
looks like the same expression but it will be processed as a number ( 2 + 3 ) and a string
( i ), and not as the complex number (2 + 3i). It is also important to point out that
termination with the character i only works with simple numbers, not expressions. For
example, the expression ( 1 - 2i)i has no meaning to MATLAB. If you want to multiply a
complex expression by i, you have to use the multiplication operation symbol (*). In the
example above, you must write ( 1 - 2i)*i . Similarly, the number 1 - sin(2)i has no
meaning for MATLAB. It has to be written as 1 - sin(2)*i to make sense to the program.
Tasks:
1. Declare two variables “x” and “y” assign any value to them and perform any
mathematical operation on it and store the result in “res”.
2. Now take the log of “res”.
3. Declare the variable x,y,z and solve the equation using arithmetic operator in
matlab command
• x2+2xy+y2
• x3y+4x2+7y3
4.Declare a complex number n=-8-20i and display its real part and imaginary part by
calling function real (n) and imag (n).
Levels
PLO
no Criteria Beginning (1) Developing (2) Accomplished (3) Exemplary (4)
Student is unable to apply With instructor/ supervisor’s With instructor/ Student is able to apply all
Apply Procedural
described procedure to guidance, student is able to supervisor’s guidance, procedural knowledge to
Knowledge to
1 perform activity despite apply some of the described student is able to apply all independently perform
perform an
instructor/ supervisor’s procedure to partially perform described procedure to fully activity without instructor/
activity
guidance. activity. perform activity. supervisor’s guidance.
With instructor/ Student is able to
Student is unable to design
Design systems, With instructor/ supervisor’s supervisor’s guidance, independently design
systems, components and/or
components guidance, student is able to student is able to fully systems, components and/or
processes to meet
3 and/or processes partially design systems, design systems, processes to meet
specifications despite
to meet components and/or processes components and/or specifications without
instructor/ supervisor’s
specifications to meet specifications. processes to meet instructor/ supervisor’s
guidance.
specifications. guidance.
With instructor/ Student is able to
Student is unable to analyze/ With instructor/ supervisor’s
Data Analysis and supervisor’s guidance, independently
interpret obtained results guidance, student is able to
4 interpretation of student is able to fully analyze/interpret obtained
despite instructor/ partially analyze/interpret
obtained results analyze/interpret obtained results without instructor/
supervisor’s guidance. obtained results.
results. supervisor’s guidance.
Operational Skills Student has shown little to no
for ability to handle/use With instructor/ supervisor’s With instructor/ Student can handle/use all
Hardware/Softwa equipment/software and guidance, student can supervisor’s guidance, equipment/software and
5 re equipment and involved components despite handle/use some of the student can handle/use all involved components
involved instructor/ supervisor’s equipment/ software and equipment/software and without instructor/
components guidance. involved components. involved components. supervisor’s guidance.
Group No.
C P Domain +
N
L L Taxonomy Criteria Awarded Score (out of 4 for each cell)
o.
O O
- - - -