ROLL NO: EDM17B032
1) For any input in the form of Array:
Variance
If input is 1-1000, then,
2)
3)
This gives the number of prime numbers in first ‘N’ natural numbers
4)
5)
For 1:1000,
6)
The code given does the function of a modulus operator which returns the absolute value of the input given.
This can also be implemented without using for loop:
abs(number): It’s a built-in function in MATLAB which does the same job as the given function.
7)
It creates an array (1x1000) with random values between 0 and 1.
8)