Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
extract numbers

Subject: extract numbers

From: John

Date: 11 Oct, 2009 22:57:05

Message: 1 of 4

Hi

I have matrix of 3000 numbers, and those numbers are from 1 to 10 and they are repeated in a random way, what I am trying to extract them with no repeation, in other words I want to extract another matrix with the numbers between 1 to 10 only

Thanks
john

Subject: extract numbers

From: Dave Brackett

Date: 11 Oct, 2009 23:47:03

Message: 2 of 4

"John " <john.k.jacoub@hotmail.com> wrote in message <hatns0$7vr$1@fred.mathworks.com>...
> Hi
>
> I have matrix of 3000 numbers, and those numbers are from 1 to 10 and they are repeated in a random way, what I am trying to extract them with no repeation, in other words I want to extract another matrix with the numbers between 1 to 10 only
>
> Thanks
> john

i am having difficulty visualising your question/problem. could you be a bit clearer and perhaps give a brief example please?

Subject: extract numbers

From: arun

Date: 12 Oct, 2009 00:13:50

Message: 3 of 4

On Oct 12, 12:57 am, "John " <john.k.jac...@hotmail.com> wrote:
> Hi
>
> I have matrix of 3000 numbers, and those numbers are from 1 to 10 and they are repeated in a random way, what I am trying to extract them with no repeation, in other words I want to extract another matrix with the numbers between 1 to 10 only
>
> Thanks
> john

I guess you want the unique numbers from your original vector of 3000
entries??
type in command window,

help unique

best, arun.

Subject: extract numbers

From: Steven Lord

Date: 12 Oct, 2009 00:15:11

Message: 4 of 4


"John " <john.k.jacoub@hotmail.com> wrote in message
news:hatns0$7vr$1@fred.mathworks.com...
> Hi
>
> I have matrix of 3000 numbers, and those numbers are from 1 to 10 and they
> are repeated in a random way, what I am trying to extract them with no
> repeation, in other words I want to extract another matrix with the
> numbers between 1 to 10 only

HELP UNIQUE.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us