help matlab Finding Primes In a (unction file named findPrimes.m, write a user-d
ID: 3697207 • Letter: H
Question
help matlab
Explanation / Answer
function [Prime] = PrimeNum3(N,M)
if (N>M || N <0 || M < 0)
error('ERROR: Invalid Input, you entered biggere number first or you entered negative number as you interval.');
end
Prime = [];
for j=0:(M-N)
if all(mod((N+j),2:((N+j)/2))),
Prime = [Prime;N+j];
end
end
note- the above function can help to answer the given question.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.