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

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com