Question: Write a MATLAB script to call two functions. 1- The first named: mySinusoids() which calculates the sinusoids ( sin ) of all angles between 0
Write a MATLAB script to call two functions.
1- The first named: mySinusoids() which calculates the sinusoids (sin) of all angles between 0 and 90 degrees and stored them in an array.
2- The second function named: primeSin() which takes the array of sinusoids of angles computed in the first function and print only the sinusoids of the prime angles.
(Hint:: A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A prime number divides by 1 and itself without modulus. Example: 5 is prime, its factors 1 and 5 only)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
