"Heaven's Light Is Our Guide" Rajshahi University of Engineering & Technology

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Heavens Light is Our Guide

Rajshahi University of Engineering & Technology

Experiment No: 01
Name of the Experiment: Familiarization with various commands used in
MATLAB.
Submitted by:Name: Md. Sarwar Hosen
Department: EEE
Section: B
Roll No: 131076
Course No: EEE 3110
Course Title: Computational Methods in Electrical Engineering Sessional
Date of Experiment: 23-07-16
Date of Submission: 31-07-16

Matrix laboratory precisely known as MATLAB is a multi-paradigm numerical computing


environment and fourth-generation programming language.In our laboratory we have been
familiarized with different types of command used in MATLAB.Name of those commands with
their functions are stated below-

Commands
clc
clear
clf
A(r,c)
A(:,c)
A(r,:)
X=p:t:q
max(A)
min(A)
plot
axis([Xmin Xmax Ymin Ymax])
grid
title
legend
xlabel
ylabel
hold

Respective Functions
Clears command window
Clears workspace
Clears figure
If A is a r*c matrix then A(r,c) will indicate the value of
the variable of the respective row and column
If A is a r*c matrix then A(:,c) will indicate the values of
the variables of all rows and respective column
If A is a r*c matrix then A(r,:) will indicate the values of
the variables of all columns and respective row
If X is a variable then this indicates the bounded value of
X from p to q with increament t
Indicates the maximum value of an array A
Indicates the minimum value of an array A
Generates xy plot
Sets the limits of xy plot
Displays grid line
Puts text at top of plot
Legend placement by mouse
Adds text label to x-axis
Adds text label to y-axis
Freezes current plot.If we want to draw more than one
function in a xy plot then we will have to use the
command hold on after commanding plot of each
function.

You might also like