Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1. What is MATLAB?

2. How to plot a graph in MATLAB?


3. How to call a function in MATLAB?
4. What is MATLAB used for?
5. How to run MATLAB code?
6. How to read images in MATLAB from a folder?
7. How to write function in MATLAB?
8. How to solve differential equations in MATLAB?
9. How to create a matrix in MATLAB?

How to solve Linear equations in MATLAB?

How to plot a circle in MATLAB?

Ans. You can use this given an example, or the syntax, to plot a circle
in MATLAB.

Here is a MATLAB function that plots a circle with radius ‘r’ and
locates the center at the coordinates ‘x’ and ‘y’:

function h = circle(x, y, r)
hold on
th = 0 : pi/50 : 2 * pi;
xunit = r * cos(th) + x;
yunit = r * sin(th) + y;
h = plot(xunit, yunit);

And you can run the code in the workspace by typing the word ‘circle’
and the input conditions.

What is Simulink?
Simulink is an add-on product to MATLAB, it provides an interactive,
simulating, graphical environment for modeling and analyzing
dynamic systems.

How to plot a graph in MATLAB?


For any two points x and y with some values given, a function called
plot (x, y) is used to plot a graph in MATLAB.

_________________________________

Syntax : x : [value of array];

y : [value of array];

plot(x, y)

How to stop a program in MATLAB ?


You can simply use the quit command to stop a program in MATLAB
or you can use the desktop shortcut such as Ctrl + C.

What do you mean by M-file in MATLAB ?


An M file is a text file used by MATLAB .It can store a script, class, or
an individual function in the MATLAB language. M files are used for
executing algorithms, plotting graphs, and performing other
mathematical operations. It is the basic type of files that MATLAB
have. The extension for m file is .m . Any file with the extension .m is a
m-file.

What is the full form for MATLAB?


The full form of MATLAB is MATrix LABoratory.

Who uses MATLAB?


MATLAB is used by several engineers as well as scientists across the
world for various applications. They use it in academia and industry,
which include image and video processing, deep learning and
machine learning, signal processing and communications, control
systems, computational finance, test and measurement, and
computational biology.

Is MATLAB harder than Python?


MATLAB is the easiest and highly productive computing environment
for engineers as well as scientists. It uses the MATLAB language. This
is the only top programming language which is dedicated to
mathematical and technical computing. On the other hand, Python is
called a general-purpose programming language.

You might also like