1) What is MATLAB?
MATLAB (matrix laboratory) is fourth-generation programming language. It allows matrix manipulations, implementations of algorithm and many more.
2) Who developed MATLAB?
MATLAB is developed by MathWorks.
3) In which language is MATLAB is written?
MATLAB is written is C, C++ and Java language.
4) What are the features of MATLAB?
MATLAB features are:
- It is a high-level language.
- It is used for numerical computation, visualization and application development.
- It provides an interactive environment for designing and problem solving.
- It provides development tools.
- It provides huge library of mathematical functions.
5) What is the use of MATLAB?
MATLAB is used to create an application such as:
- Signal Processing and Communications
- Image and Video Processing
- Control Systems
- Test and Measurement
- Computational Finance
6) What are the special expressions for mathematical symbol in MATLAB?
There are various special expressions for mathematical symbols in MATLABS:
pi for π
Inf for ∞
i (and j) for √-1 etc
7) What are the special operators and characters supported by MATLAB?
MATLAB supported following special operator and characters:
8) Is MATLAB case-sensitive?
Yes, MATLAB is case-sensitive.
9) What is the extension of MATLAB file?
The extension of MATLAB file is: .mat
10) What is the command to display all the variable names what we have used?
The who command is used to display the entire variable name.
Example:
Your variables are:
a ans b c
11) How can we create vectors in MATLAB?
In MATLAB, we can create vector by using two ways:
Row vectors : Example r=[7 8 9 10 11]
Column vectors: Example c=[7; 8; 9; 10; 11]
12) What are the various commands for managing session in MATLAB?
There are various commands fro managing the session in MATLAB:
Operator |
Purpose |
+ |
Plus; addition operator. |
.* |
Array multiplication operator. |
.^ |
Array exponentiation operator. |
^ |
Scalar and matrix exponentiation operator. |
._ |
Nonconjugated transpose operator. |
Command |
Purpose |
clc |
Clears command window. |
clear |
Removes variables from memory. |
exist |
Checks for existence of file or variable. |
global |
Declares variables to be global. |
help |
Searches for a help topic. |
13) What is the use of fscanf and fprinf command in MATLAB?
In MATLAB, fscanf command is used to read formatted data and fprintf command is used display the message on the screen.
14) What are the ways to write program file in MATLAB?
There are two ways to write program file in MATLAB:
15) Does MATLAB require any type declaration or dimension statements?
No, MATLAB does not require any type declaration or dimension statement.