You are on page 1of 6

MATLAB ASSIGNMENT -3

Date: 08-05-2020

1. What is the use of whos command?

A: The command that is used to list variables in workspace along with sizes and
types.

2. Find the value of the expression 3^2+124+(10/3) & display the value up to two
decimals by using format command?

A:

3. Give the 16bit representation of 600?


4. If A=30 B=40 perform logical and, logical xor for A, B?
5. If A=80 B=10 perform bitwise operations on A, B?

6. If A= [2 3 4 5 6 7 8 9] B= [1 2 3 6 8 9 0 12] find set difference of A, B

7. Write a program to find the square of integers for a=1:10.


8. Write a program to check whether an integer is a square number.

9. For the given below data draw a bar graph for n= [20 30 45 67 70 50 37 80]
which represents the marks scored by 8 students.
10. If g=sin(x) and y=cos(x) plot a graph for x=0:1:10

- K Madhulaalasa
3rd year
Aeronautical Engineering
IARE

You might also like