0% found this document useful (0 votes)
202 views3 pages

What Is Matlab

Download as doc, pdf, or txt
Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1/ 3

1) What is MATLAB?

Ans) MATLAB is a software package for high-performance numerical computation and


visualization. It provides an interactive environment with hundreds of built-in functions for
technical computation, graphics and animation. The name MATLAB stands for MATrix
LABoratory.

2) What are the basic functions or applications of mat lab?


Ans) Mat lab’s built in functions provide excellent tools far linear algebra computations, data
analysis, signal processing, optimization, numerical solution of ordinary differential
equations (ODES), quadrature and many other types of scientific computation.

3) Which is the basic building block of matlab?


Ans) The basic(tool box) building block of matlab is the matrix. All the variables in mat lab
are in the form of matrix, vectors , and scalars.

4) Which are the basic windows in matlab?


Ans) Command window, editor window, and figure window.

5) Which is the main window of matlab?


Ans) Command window.

6) What is the fundamental data type of matlab?


Ans) Array is the fundamental data type.

7) Name the two types of acii text files with extension ‘m’ in mat lab.
Ans) Script file and function file.

8) What is a function file?


Ans) Function file is a small program that is invoked from the main script file. It is saved
separately as a script file with the extension ‘.m’. These functions can be reused for other
script files.

9) Show the command prompt in matlab(ask the student to show the command prompt)?
Ans) He has to show the symbol ‘>>’ on the command window.

10) What is the importance of work space?


Ans) This sub window lists all variables that you have generated so far and show their type
and size.

11) write equivalent Mat lab expressions for the following:-

a) A=√(Cos℮+log10(0.5)+√4.5)2
Ans) A= Sqrt((cos(theta)+log10 (0.5)+sqrt(4.5))^2)

b) B= √(b2-4ac+cos-1(℮)+2bc)/(logn(0.5)+abs(2.5)+2a/b+2.0)2
Ans) B=sqrt(b^2-4ac+acos(theta)+2bc)/(log (0.5)+abs(2.5)+2a/b+2.0)^2
n
VHDL

1) What is VHDL?
VHDL is an acronym for vey high speed integrated circuits hardware description
language. It is the hardware description language that can be used to model a digital
system.
2) What are the basic design units of vhdl?
a) Entity declaration b) architectural body c) configuration declaration d)
package declaration e) package body.
3) What is entity declaration?
The entity declaration specifies the name of the entity being modeled and lists the set
of interface ports.
4) Define port.
Ports are signals through which the entity communicates with the other models in its
external environment.
5) Define architecture.
The architecture describes the functionality of the entity. A single entity can have
multiple architectures.
6) Define generic
A generic is VHDL’S term for a parameter that passes information to an entity.
7) What do you mean by process?
A process is the basic unit of execution in vhdl..
8) What is the meaning of compound symbol ‘<=’ in vhdl?
It is an signal assignment statement.
9) What is the meaning of compound symbol ‘:=’ in vhdl?
A variable is used to assign value instantaneously using this symbol ‘:=’.
10) What is the meaning of term ‘a: in std_logic’?
It defines only one input port with name ‘a’
11) What is the meaning of term ‘a: out std_logic_vector(2 down to 0)’?
It defines three out put port in the name of ‘a’ viz a(2), a(1), and a(0).
12) Name the different identifiers in vhdl.
Basic identifiers and extended identifiers.
13) Name the different operators in vhdl.
Logical operator, relational operator, shift operator, adding operator, multiplying
operators and miscellaneous operator.
Programs in matlab:

1) MATLAB PROGRAM TO CREAT A sine wave PLOT


2) MAT LAB PROGRAM TO CREATE A 2D PLOT FOR A CIRCLE
3) Mat lab script file to find out equivalent Resistance of a resistances in parallel.
4) Mat lab program to find out the Area of Circle
5) Mat lab program for temperature conversion
6) Mat lab program to find Resonant Frequency
7) Mat lab program to find simple interest
8) Mat lab program to find generated voltage in a DC generator.
9) Mat lab program to find out the area of Ellipse
10) Mat lab to find or calculate the total cost, average cost/items, total items and average
cost…..
11) Mat lab program to add 2 nos using function file.
12) Mat lab program to substract 2 nos using function file…..
13) Mat lab program to multiply 2 nos using function file….
14) Mat lab program to divide 2 nos using function file….
15) Mat lab program to generate BODE PLOT
16) Mat lab program to generate NYQUIST PLOT
17) Mat lab program to generate Root locus plot
18) Mat lab program to generate BODE, NYQUIST, ROOT LOCUS plots…..

Programs in vhdl
1) Write VHDL code for realize all logic gates( or, and, exor, nand, nor,not)
2) Write VHDL code for 2 to 4 decoder
3) Write VHDL code for 8 :1 Multiplexer
4) Write VHDL code for 4-bit Binary to Gray converter
5) Write VHDL code for Demultiplexer (1:8):
6) Write VHDL code for Comparator
7) Develop the VHDL code for SR flip flop.,
8) Develop the VHDL code for D flip flop.
9) Develop the VHDL code for jk flip flop.

You might also like