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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!