You are on page 1of 5

LAB-02

Learning basics of matlab

Objectives/lab goals:
Learning basics commands such as:

 disp
 table
 zeros
 ones
 Logical operators
 Conditions (do while, while loop)
 Non-conditional (For loops)
 Nested for loop

1. disp command
MATLAB program outputs can be made more informative by using the disp function. The purpose of this
function is to display text or variable values on screen.

2. table
Table is a data type suitable for column-oriented or tabular data that is often stored as columns in a
text file or in a spreadsheet. Tables consist of rows and column-oriented variables.
3. zeros

4. ones

5. logical operators
6. non-conditional(for loop)

7. nested for loop


8. If else

Temperature changing

You might also like