Question: PLEASE USE MATLAB 1) Write a function that takes a single input as a vector of numbers numbers. The function should check if each number

PLEASE USE MATLAB

PLEASE USE MATLAB 1) Write a function that takes a single input

1) Write a function that takes a single input as a vector of numbers numbers. The function should check if each number in the vector is a prime number or not, and then place the prime numbers in one vector and the not prime numbers in a different vector. The function should then return both the vector of prime numbers and the vector of not prime numbers. 2) Use this function as a local function is a script that checks the integers between 1 and 10 for primes

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!