ramone
Member level 3
- Joined
- Oct 5, 2003
- Messages
- 58
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Patras University
- Activity points
- 721
Programmin help!
Hi there i have this matrix:
1 1 1 1 1 -1 -1 -1
1 6 6 6 1 -1 -1 -1
1 6 6 5 1 1 1 1
1 1 1 1 1 1 1 1
1 -1 -1 -1 1 6 6 1
1 -1 -1 -1 1 6 6 1
1 -1 -1 -1 1 1 1 5
what i want to do is to give a special number to each special region:
- you can see 2 regions with 6s and a 5...i want to fill the first of this region
with 2s and the second with 3s
does anyone know the way... i am programming in matlab
Hi there i have this matrix:
1 1 1 1 1 -1 -1 -1
1 6 6 6 1 -1 -1 -1
1 6 6 5 1 1 1 1
1 1 1 1 1 1 1 1
1 -1 -1 -1 1 6 6 1
1 -1 -1 -1 1 6 6 1
1 -1 -1 -1 1 1 1 5
what i want to do is to give a special number to each special region:
- you can see 2 regions with 6s and a 5...i want to fill the first of this region
with 2s and the second with 3s
does anyone know the way... i am programming in matlab