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:
Dear sir, how to segregate the alternative constant from the following values.because these three values or n no of values would be available in my case in a n no of arrangements.from this i want to plot a1,a2,b1,b2,c1,c2,....n1,n2 a=1 2 3 1 2 5 4 6 9 8 7

Subject: Dear sir, how to segregate the alternative constant from the following values.because these three values or n no of values would be available in my case in a n no of arrangements.from this i want to plot a1,a2,b1,b2,c1,c2,....n1,n2 a=1 2 3 1 2 5 4 6 9 8 7

From: k.vigneshwaran K

Date: 18 Aug, 2012 07:59:12

Message: 1 of 2

Dear sir,
how to segregate the alternative constant from the following values.because these three values or n no of values would be available in my case in a n no of arrangements.from this i want to plot a1,a2,b1,b2,c1,c2,....n1,n2
a=1 2 3 1 2 5 4 6 9 8 7 5 2;
ex
a1=1 3 2 4 9 7 2;
a2=2 1 5 6 8 5;
b=1 2 5 4 6 3 9 8 7 5 3 3;
c=2 5 4 6 8 9 8 7 5 3 6 2 1;
     .
     .
     .
n=1 2 5 4 6 3 9 8 7 4 1 5 6;
if there is any loop operation is there pls guide me to obtain this.

Subject: Dear sir, how to segregate the alternative constant from the

From: dpb

Date: 18 Aug, 2012 12:59:20

Message: 2 of 2

On 8/18/2012 2:59 AM, k.vigneshwaran K wrote:
> Dear sir,
> how to segregate the alternative constant from the following
> values....

> a=1 2 3 1 2 5 4 6 9 8 7 5 2; ex
> a1=1 3 2 4 9 7 2;
...

a1=a(1:2:end);

Read "Getting Started" and manipulating matrices/arrays.

doc colon % specifically

--

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