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:
Content of Matrix

Subject: Content of Matrix

From: Xiao

Date: 25 Jan, 2009 09:49:04

Message: 1 of 2

Hi all,

I have a question as follow:

for example:

network = [] [1;0] [] ;
                [] [] [0;1] ;
                [] [] [1;0] ;
                [] [] [] ;
                [] [] [] ],

First, i need to check through the columns to see if there is more than one item in it. Based on the network, col 3 has more than one item. After which, i need to store the positions of the 2 items.

that means to say,

When more than 1 item in a column
store those positions [network (2,3) & network (3,3)] in an ARRAY.

After the checking is done,
go to the ARRAY,

eg:

ARRAY ( Position of 1st item, position of 2nd item )

then take out the content from the 2 positions and compare their rank.

I hope this elaboration is clear enough..

May I ask, how do i go about doing it ?

Thank you in advance.

Subject: Content of Matrix

From: Joerg Buchholz

Date: 25 Jan, 2009 17:04:07

Message: 2 of 2

"Xiao " <viva_paradise@hotmail.com> wrote in message <glhcig$1l8$1@fred.mathworks.com>...
> Hi all,
>
> I have a question as follow:
>
> for example:
>
> network = [] [1;0] [] ;
> [] [] [0;1] ;
> [] [] [1;0] ;
> [] [] [] ;
> [] [] [] ],
>
> First, i need to check through the columns to see if there is more than one item in it. Based on the network, col 3 has more than one item. After which, i need to store the positions of the 2 items.
>
> that means to say,
>
> When more than 1 item in a column
> store those positions [network (2,3) & network (3,3)] in an ARRAY.
>
> After the checking is done,
> go to the ARRAY,
>
> eg:
>
> ARRAY ( Position of 1st item, position of 2nd item )
>
> then take out the content from the 2 positions and compare their rank.
>
> I hope this elaboration is clear enough..
>
> May I ask, how do i go about doing it ?
>
> Thank you in advance.

Just do what you are told. Or as John once put it:

The going rate for homework is $400 per hour. A minimum of 10 hours. Payable in advance, in cash, small bills only.

Tags for 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