Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: create a group and renumbering sequence

Subject: create a group and renumbering sequence

From: adien_ndutz@yahoo.co.id

Date: 6 Aug, 2007 03:38:51

Message: 1 of 3

I have a array which have row and column (6*14) like,
A=[1 2 3 4 5 6; 7 8 9 1 2 3; 4 5 6 7 8 9;1 2 3 4 6 5;1 2 3 4 5 6;1 2 3
4 5 6;1 2 4 6 7 9]
how to named a group of row, like a(1,:) as group one, and a(2,:) as
group2, etc...
they are group as physical cluster...
and next i will renumbering sequence with formula:
logical cluster=renumbering sequence(physical cluster), with
renumbering sequence=[2 3 6 1 5 4]

how i can do that?

thanks...

-adin-

Subject: create a group and renumbering sequence

From: dinda

Date: 6 Aug, 2007 07:04:52

Message: 2 of 3

Please Help Me.....


I mean...
 I have a array which have row and column (14*6) like,
A=[1 2 3 4 5 6; 7 8 9 1 2 3; 4 5 6 7 8 9;1 2 3 4 6 5;1 2 3 4 5 6;1 2 3
4 5 6;1 2 4 6 7 9]
how to named a group of row, like a(1,:) as group one, and a(2,:) as
group 2, etc...
they are group as physical cluster...
and next i will renumbering sequence with formula:
 logical cluster=renumbering sequence(physical cluster), with
renumbering sequence=[2 3 6 1 5 4]

 how i can do that?

thanks...




Subject: create a group and renumbering sequence

From: us

Date: 6 Aug, 2007 07:50:39

Message: 3 of 3

adien_ndutz:
<SNIP mat aerobatics...

one of the solutions

% your data
     m=[
            1 2 3 4 5 6
            7 8 9 1 2 3
            4 5 6 7 8 9
            1 2 3 4 6 5
            1 2 3 4 5 6
            1 2 3 4 5 6
            1 2 4 6 7 9
     ];
     ix=[2 3 6 1 5 4];
% rearranged
     mr=m(ix,:)

% note: in general there is no need to put rows/cols
% of a mat into seperate vars as they can easily be
% retrieved by

     nc=3;
     m(:,nc)

throughout your code...

us

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
code us 6 Aug, 2007 03:55:06
syntax us 6 Aug, 2007 03:55:06
matrix us 6 Aug, 2007 03:55:06
index us 6 Aug, 2007 03:55:06
indexing us 6 Aug, 2007 03:55:06
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
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 Disclaimer prior to use.
Related Topics