From: Mahmud Hasan on
Question: Determine the prime numbers from an array A=[1,2,3,4,5,6,7,8,9,11,15,17,20,23]
using Matlab program.
In the command window the output will show only the prime numbers from the input array.
From: Bruce Bowler on
On Thu, 22 Apr 2010 16:51:22 +0000, Mahmud Hasan set fingers to keyboard
and typed:

> Question: Determine the prime numbers from an array
> A=[1,2,3,4,5,6,7,8,9,11,15,17,20,23] using Matlab program.
> In the command window the output will show only the prime numbers from
> the input array.

Send us your professors name and address so we can tell him how hard you
worked on the problem.

Bruce
From: us on
"Mahmud Hasan" <etemahmud(a)gmail.com> wrote in message <hqpuqa$pl5$1(a)fred.mathworks.com>...
> Question: Determine the prime numbers from an array A=[1,2,3,4,5,6,7,8,9,11,15,17,20,23]
> using Matlab program.
> In the command window the output will show only the prime numbers from the input array.

what have YOU done so far to solve YOUR particular problem...

us
From: us on
"Mahmud Hasan" <etemahmud(a)gmail.com> wrote in message <hqpv1p$hp$1(a)fred.mathworks.com>...
> Question: Determine the prime numbers from an array A=[1,2,3,4,5,6,7,8,9,11,15,17,20,23]
> using Matlab program.
> In the command window the output will show only the prime numbers from the input array.

what have YOU done so far to solve YOUR particular problem...

us
From: Walter Roberson on
Mahmud Hasan wrote:
> Question: Determine the prime numbers from an array
> A=[1,2,3,4,5,6,7,8,9,11,15,17,20,23]
> using Matlab program.
> In the command window the output will show only the prime numbers from
> the input array.

It'd go something like this, with perhaps minor changes to the function
names:

double(select(isprime, sym(A));

This is providing you have the symbolic toolbox, which I understand is
included with the student edition version of matlab that you are
probably working with (since no real-world application would phrase the
question like that.)