[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need to simplified a splitting and comparison commands
From: |
Juan Pablo Carbajal |
Subject: |
Re: Need to simplified a splitting and comparison commands |
Date: |
Wed, 12 Oct 2011 10:57:35 +0200 |
On Wed, Oct 12, 2011 at 8:08 AM, Faizal <address@hidden> wrote:
> The following is an example command I made (in this example only 20 random
> numbers, but as actual I want to generate 100 to 200 random numbers. If I
> use this splitting and comparing command it will have long command, which I
> split and compare it individually. Need an assistance how to simplify this
> maybe in function or looping. I am new in octave and still learning for
> faster process.
> Thank you
>
> Example of 20 random number which I generated
>
> 9 2 0 4 2 4 8 3 9 6 7 4 2 6 8 7 4 8 4 6
>
> The following is the command I used
>
> D1=R(1:1,1:5), D2=R(1:1,6:10), D3=R(1:1,11:15), D4=R(1:1,16:20),
> E1=intersect(D1,D2), E2=intersect(D3,D4),
> F1=intersect(E1,E2),
>
> ans=
>
> D1 = 9 2 0 4 2
> D2 = 4 8 3 9 6
> D3 = 7 4 2 6 8
> D4 = 7 4 8 4 6
>
> E1 = 4 9
> E2 = 4 6 7 8
>
> F1 = 4
>
>
> --
> View this message in context:
> http://octave.1599824.n4.nabble.com/Need-to-simplified-a-splitting-and-comparison-commands-tp3896923p3896923.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
Hi Faizal,
Welcome to Octave. What do you want to achieve?
--
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/
- Need to simplified a splitting and comparison commands, Faizal, 2011/10/12
- Re: Need to simplified a splitting and comparison commands, Francesco Potortì, 2011/10/12
- Re: Need to simplified a splitting and comparison commands,
Juan Pablo Carbajal <=
- Re: Need to simplified a splitting and comparison commands, Faizal, 2011/10/12
- Re: Need to simplified a splitting and comparison commands, Juan Pablo Carbajal, 2011/10/12
- Re: Need to simplified a splitting and comparison commands, Faizal, 2011/10/13
- Re: Need to simplified a splitting and comparison commands, Juan Pablo Carbajal, 2011/10/13
- Re: Need to simplified a splitting and comparison commands, Juan Pablo Carbajal, 2011/10/13
- Re: Need to simplified a splitting and comparison commands, Francesco Potortì, 2011/10/13
- Re: Need to simplified a splitting and comparison commands, Faizal, 2011/10/13