0% found this document useful (0 votes)
2 views

Lecture 1

Uploaded by

mpd2025e177
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)
2 views

Lecture 1

Uploaded by

mpd2025e177
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/ 8

Lecture 1

Introduction
 MATLAB stands for MATrix LABoratory.
 MATLAB was designed to make matrix computations
particularly easy.
 Cleve Moler wrote the first version of MATLAB IN 1970.
 MATLAB integrates computation + visualization
+programming in a very easy way to use
SOME Applications (MATLAB)
 Math and computation
 Programming
 Modeling and simulation
 Plotting and data representatio
 Data analysis, exploration and visualization
 Systems and Control
 Scientific and engineering graphs

. Menu Bar
The Menu Bar is located at the top of the MATLAB window and provides access
to various operations and tools, organized into menus like:

 File: Open, save, or manage files.


 Edit: Perform editing tasks like cut, copy, paste, and find.
 View: Customize the layout of the MATLAB workspace.
 Plot: Access visualization options for creating graphs and plots.
 Apps: Access toolboxes and specialized applications.
 Desktop: Manage the appearance and behavior of the desktop environment.
 Help: Access MATLAB's documentation and support features.

MSC ELAF ALI 1


2. Tool Bar
The Tool Bar contains shortcut icons for commonly used functions, such as:

 Run: Execute scripts or commands.


 Save: Save the current workspace or script.
 Open: Open an existing file or project.
 Debugging Tools: Set breakpoints and step through code.
 Plotting Options: Quickly create 2D and 3D plots.

3. Program Windows

MATLAB's interface is divided into multiple windows, each serving a


specific purpose:

 Command Window: The primary interface for executing commands and


running scripts interactively.
Example:

matlab
Copy code
>> x = 5;
>> y = x^2;
>> disp(y)

 Editor: A text editor for writing, editing, and saving MATLAB scripts (.m
files). It includes features like syntax highlighting and debugging tools.
 Workspace: Displays variables currently in memory, their values, and sizes.
 Command History: Keeps a record of all commands entered in the
Command Window.
 Current Folder: Shows the contents of the working directory,
allowing you to manage files and folders.
 Figure Window: Displays graphical outputs like plots and charts.
 Simulink Library Browser: For users working with Simulink,
this window provides access to model components.

MSC ELAF ALI 2


MSC ELAF ALI 3
MSC ELAF ALI 4
MSC ELAF ALI 5
MSC ELAF ALI 6
MSC ELAF ALI 7
Summary

Understanding the MATLAB interface is the first step toward mastering


programming in MATLAB. Familiarity with the Menu Bar, Tool Bar,
and various Program Windows allows you to efficiently navigate and
utilize the software for computational tasks, data analysis, and
visualization.

MSC ELAF ALI 8

You might also like