0% found this document useful (0 votes)
16 views3 pages

Experiment No:01 Experiment Name: Introduction To MATLAB Objective

matlab plot

Uploaded by

muntasirf626
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views3 pages

Experiment No:01 Experiment Name: Introduction To MATLAB Objective

matlab plot

Uploaded by

muntasirf626
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment No:01

Experiment Name: Introduction to MATLAB


Objective: The primary objective of this lab experiment is to introduce students to the
fundamentals of MATLAB programming. MATLAB is a powerful numerical computing
software widely used in various scientific, engineering, and mathematical applications. The
experiment aims to familiarize students with basic syntax, mathematical operations, plotting, and
programming concepts in MATLAB.

Theory: MATLAB (MATrix LABoratory) is a high-level programming language that allows for
easy manipulation of matrices and arrays. It provides a user-friendly environment for numerical
computations and data visualization. Some key concepts and features of MATLAB include:

a. Matrix Operations: MATLAB's core strength lies in its ability to perform matrix operations
efficiently. Matrices can be created, modified, and manipulated with ease, making it ideal for
solving complex mathematical problems.

b. Functions and Scripting: MATLAB allows the creation of functions and scripts, which are
reusable blocks of code. Functions are designed to perform specific tasks, while scripts are a
series of commands executed sequentially.

c. Plotting and Visualization: MATLAB provides numerous tools for visualizing data, creating
2D and 3D plots, and customizing their appearance. This makes it convenient for representing
and interpreting experimental results.

Desktop Tools:
1- Command Window: Use the Command Window to enter variables and run
functions and M-files.
2- Command History: Statements you enter in the Command Window are logged in
the Command History. In the Command History, you can view previously run
statements, and copy and execute selected statements.
3- Current Directory Browser: MATLAB file operations use the current directory
reference point. Any file you want to run must be in the current directory or on the
search path.
4- Workspace: The MATLAB workspace consists of the set of variables (named
arrays) built up during a MATLAB session and stored in memory. Current Directory Browser
Command window Workspace

Basic Commands:

 clear Command: Removes all variables from workspace.


• clc Command: Clears the Command window and homes the cursor.
• help Command: help <Topic> displays help about that Topic if it exist.
• lookfor Command: Provides help by searching through all the first lines of
MATLAB help topics and returning those that contains a key word you specify.
• edit Command: enable you to edit (open) any M-file in Editor Window. This
command doesn’t open built-in function like, sqrt. See also type Command.
• more command: more on enables paging of the output in the MATLAB
command window, and more off disables paging of the output in the MATLAB
command window.
In editor if we use ; then the value is hide from command window. But value show in workspace.
If we not use ; then value is not hide show in command window.

Matlab code:
clc
clear all
a=[1 2 3 ; 3 4 5 ; 6 7 8]

Result:
a=

1 2 3
3 4 5
6 7 8

Discussion:
The lab session proved to be an effective starting point for students to learn MATLAB
programming. By understanding the basic concepts and techniques covered in this experiment,
participants are better equipped to tackle more complex problems using MATLAB in their future
academic and professional endeavors.

You might also like