0% found this document useful (0 votes)
13 views9 pages

Sir Aslam Lab

This lab report summarizes an introduction to MATLAB software. The objectives are to learn about MATLAB's basic commands and how to run programs on it. Some key programs discussed include using variables to store values and perform calculations, arithmetic operators, logical operators, performing calculations at the command line, vectors and matrices, entering numeric arrays, multidimensional arrays, operating on matrices, string arrays, 2D plotting with grids, subplots, and 3D line plotting. The report provides an overview of MATLAB's capabilities and examples of common operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views9 pages

Sir Aslam Lab

This lab report summarizes an introduction to MATLAB software. The objectives are to learn about MATLAB's basic commands and how to run programs on it. Some key programs discussed include using variables to store values and perform calculations, arithmetic operators, logical operators, performing calculations at the command line, vectors and matrices, entering numeric arrays, multidimensional arrays, operating on matrices, string arrays, 2D plotting with grids, subplots, and 3D line plotting. The report provides an overview of MATLAB's capabilities and examples of common operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

UNIVERSITY OF ENGINEERING AND TEHNOLOGY, PESHWAR.

US –PAKISTAN, CENTER FOR ADVACNED STUDY IN ENERGY.

Lab report: 1
SUBJECT: control system

Name: Rimsha mukhtiar

DISCIPLINE: Energy Engineering.

REG NO: 21PWEE0005.

SUBMITTED DATE: 14-3-2024.

SUBMITED TO:
Dr.muhammad aslam.
TITLE: INTRODUcTION TO MATH LAB.

OBJEcTIVES:
The objective of the lab is:
1. To know about math lab software.
2. To know about their basic commands.
3. To run different programs on it.
INTRODUTION TO MATH LAB SOFTWARE:
MATLAB is a powerful software tool widely used in various fields such as engineering,
mathematics, physics, finance, and more, for numerical computation, data analysis,
visualization, and algorithm development. It provides an interactive environment for solving
computational problems efficiently.
Overall, MATLAB is a versatile and powerful software tool that provides comprehensive
solutions for numerical computation, data analysis, and algorithm development across various
disciplines. Its user-friendly interface, extensive library of functions, and broad range of
applications make it an indispensable tool for engineers, scientists, researchers, and educators
worldwide.
THE PROGRAM THAT WE RUN ON MATH LAB SOFTWARE:
1. MATLAB VARIABLES:
Suppose we want to calculate the volume of a cylinder.
• It’s radius memory and height are stored as variables in volume
Volume = pi*radius^2*height
Variable is a name given to reserved location in memory.

2. MATLAB ARITHMETIC OPERATORS:


OPERATER DESRIPTION

Addition +

Subtraction -

Multiplication *

/ Matrix right division

\ Matrix left division

: Colon operator

^ Matrix power

3. LOGICAL OPERATORS IN MATLAB:

Operator description

& Returns 1 for every element


location that is true (nonzero)
in both arrays, and 0 for all
other elements.
| Returns 1 for every element
location that is true (nonzero)
in either one or the other, or
both, arrays and 0 for all other
elements.
_ Complements each element of
input array, A
< Less than

<= Less than or equal to

> Greater then

== Equal to

4. CALCULATIONS AT THE COMMAND LINE / WORKSPACE:

5. Vector & Matrix In MATLAB:


6. ENTERING NUMERIC ARRAYS:

7. SOME OPERATIONS SHOULD BE HANDLED WITH CARE:


8. MULTIDIMENSIONAL ARRAYS:

9. OPERATING ON MATRICES:
10. STRING ARRAYS:

11. 2-D Plotting :


A)ADDING A GRID:

12. SUBPLOTS:
13. 3-D LINE PLOTTING:

THE END!!

You might also like