MATLAB tutorials class 1 : Environmental setup and layout configuration in MATLAB

 MATLAB tutorials class 1: Environmental setup and layout configuration in MATLAB

            Hai... We are going to discuss the environmental setup in MATLAB in this post. We need to know who invented the MATLAB tool before going to see the basics first. He's Cleve Moler. In 1981, MATLAB was originally designed by Cleve Moler as a calculator function with 71 reserved commands. Matlab wasn't used as a programming language at that time. TABLE 1 represents that 71 reserved command.

Table 1. Reserved command for MATLAB version 1981

ABS

ATAN

BASE

CHAR

CHOP

CHOP

COND

CONJ

COS

DET

DIAG

DIAR

DISP

EIG

EPS

EXEC

EXP

EYE

FLOP

HESS

HILB

IMAG

INV

ORTH

LINE

LOAD

LOG

LU

MAGI

NORM

ONES

RANK

PINV

PLOT

POLY

PRIN

PROD

QR

RAND

SCHU

RAT

RCON

REAL

ROOT

ROUN

RREF

SAVE

USER

SIN

SIZE

SQRT

SUM

SVD

TRIL

TRIU

LONG

CLEA

ELSE

END

EXIT

FOR

HELP

IF

 

RETU

SEMI

SHOR

WHAT

WHIL

WHO

WHY

 



With the aid of engineers and scientists, the MATLAB edition is revised every year. 2020b is the updated version of MATLAB. 


Now in this post, We are going to discuss the environmental setup of MATLAB. If you were opening MATLAB for the first time it may show the default view. The default view will look like the one shown in figure 1.



Figure 1. The default layout of MATLAB

We now see one by one MATLAB environmental setup and layout configuration.

1. How do I show the command history window in Matlab?
  1. Go to the layout.
  2. Click command history.
  3. Select "Docked".
2. How do I close the command history window in Matlab?
  1. Go to the layout.
  2. Click command history.
  3. Select "Closed".
3. What is the current folder in MATLAB?

        While opening Matlab for the first time, the current folder indicates the C directory. Maximum it shows the directory like 'C:\Users\Admin\Documents\MATLAB\Examples\R2019a’. Which means that the code file is saved at that particular location. Generally, a new user saves all the MATLAB code with a different name on the C drive. But it's not a good practice. Because it might confuse programmers while searching for programs. It is good practice to create a separate folder for each program, and you can also choose other directories to save the program, do not prefer a desktop and a C drive. 

4. How to enable/disable current folder/workspace/Toolstrip/Panel titles in MATLAB?
  1. Go to the layout   
  2. There are current folder/workspace/Toolstrip/Panel titles in this 'show' portion, which can be enabled and disabled by clicking on.
5. How to open the script as a separate window or how to embed script in one window

        To open a script by click 'New script' or Ctrl+N.

To open the script as a separate window
  1. Go to top of editor--> Right-click --> undock (figure 2)
To embed script in one window
  1. At the top left corner --> click the down arrow -->click dock editor (figure 3)
6. What is the purpose of Command History in MATLAB?

        For beginners, Command History is really beneficial. We can see the previously executed sequence of programs in the command history.

7. What is the purpose of the workspace in MATLAB?

    All variables and variable values are present in the workspace. We can see the value of each variable in the workspace after executing the code.

8. How to fix 'OutOfMemoryError' in MATLAB?
  1. Go to preference--> click general-->click java heap memory--> increase the java heap memory (figure 4).  

Figure 2. To open script as separate window


Figure 3. To embed script in one window


Figure 4. Fixing out of memory error in MATLAB

Reference:


We have discussed the basic environmental layout configuration for MATLAB so far. We will see the matrix and array creation in my next post.

Thank you so much😇
Please subscribe😊.
Share with your friends and please provide your feedback about this post🙏🙏.





















 

Comments

Popular posts from this blog

MATLAB Tutorials class 4 : MATLAB command diag, det, trace

MATLAB Tutorials class 5: MATLAB inbuild command repmat,repelem,cat,horzcat, and vertcat

Improved Median filter MATLAB code and explanation ( without inbuilt function and with inbuilt function)