You are on page 1of 3

Matlab Assignment-2

Date: 07-05-2020

1. What is tolerance?

A: Tolerance is the threshold of the function after which the iterations of the function
stops performing.

2. Perform matrix multiplication for two inputs in which one input is row vector and the
other input is column vector?

A:

3. Create a matrix of size 3x3 by using magic function and calculate the mean for that
matrix.

A:
4. If A=[2 3 4; 7 5 9] B=[1 2 3; 10 15 14] perform relational operations

a) A<B b) A>=B

A:
5. Write a program to find the prime numbers between 1 and 100 by using conditional
statements?

A:

6. What is the use of break statement?

A: The statement that is used to terminate the execution of the conditional statement
like while or for loop.

- K Madhulaalasa
3rd year
Aeronautical Engineering
IARE

You might also like