Matlab

Matlab command windows

COMMAND HISTORY:

Command history is to the left side of the command window, used to display the statements which you run in the previous and current session. Which stores a maximum of 20,000 bytes it delete the oldest statements when it more than 20,000 bytes.

To delete entries in the Command History window, select an entry, or Shift+click or Ctrl+click to select multiple entries, or use Ctrl+A to select all entries. From the context menu by right-clicking select one of the delete options. Another method for clearing the command history click on the edit menu click on clear history.

EDITOR WINDOW:

In the editor window you can write the program or script file (with the extension of .m).which consist of one or more than one commands will be executed once the program is saved. 

FIGURE WINDOW:

Figure window is used to represents your results in graphical form

Syntax

Create a figure graphics object:

Figure
Figure ('Property Name, Property Value...)
Figure (h)
h = figure (...)
 

Here command is used to enlarge the figure

Figure (‘units’,’ normalized’, ‘position’, [0 0 1 1]);

HELP WINDOW:

Which provides complete information regarding matlab, Help window help us to search for a document and also view of the documentation and demonstrations of a MATLAB and all other Math Works products installation. MATLAB will automatically provide the installation of a documentation and demos of a product when you want install that product. Then click the Help button in the desktop toolbar,

  • Type help browser in the Command Window, or use the Help menu in any tool. There are two panes:

CURRENT DIRECTORY:

 By using the current directory field in the desktop toolbar, shown here view or change the current directory.

In MATLAB, Current Directory browser is useful for searching, viewing and help us to open and make some changes to MATLAB related directories and files. Alternatively, we can use the dircd, and delete functions. Visual Directory and Directory Reports functions will help you manage M-files.

WORKSPACE WINDOW:

It is used to display the current variables and you can view the value of variables in the Value column of the Workspace browser. The MATLABworkspace command window will help you to create and store in memory of the variables during a MATLAB session.

LAUNCH PAD WINDOW:

Provides the access to Toolboxes, SIMULINK, demos etc.

USE OF SEMICOLON (;) IN MATLAB:

Semicolon (;) can used to separate the commands written in the same lines. Which used to indicate end of statement.

For example:

X=4;

Y=2;

Z=x+y;

USE OF COLON (;) IN MATLAB:

The colon (:) operator plays an important part in MATLAB. Which help us to create subscript arrays, specify for iterations and vector.

Let consider an example create a row vector, containing integers from 11 to 20, you write

 For script 11:20

Ans = 11 12 13 14   15 16 17 18 19 20

  • Creating a list of numbers.
  • Possible of collapsing trailing dimensions.
  • Useful for creating a column vector.
  • Hold on an array shape during the assignment.
  • Works on all the entries in specified dimensions.

Rajeshwari Chiluveru

Share
Published by
Rajeshwari Chiluveru

Recent Posts

What are Template Tags in WordPress? How to Use Template Tags

In wordpress if you are developing new or custom wordpress theme or wordpress plugin then…

2 months ago

Google Search Indexing Issues Started on 31st January to February 2024

If you are experiencing indexing issues of your website then you are not alone and…

3 months ago

Create QR Code for Pages & Post using Plugin in WordPress

On your wordpress website if you want to generate qr code for pages and posts…

3 months ago

Add Google Search Console HTML File Upload on WordPress

If you are trying to verify your WordPress website with google search console with html…

4 months ago

How Do I Add Google Search Console Verification HTML Tag in WordPress?

If you are on wordpress website and wondering how to keep search console html verification…

4 months ago

Why WordPress Too Many Redirects After URL Change

If you are getting too many redirects error on your WordPress website after changing url…

4 months ago