Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

algorithm plz its urgent

Status
Not open for further replies.

alangs

Member level 3
Joined
Feb 5, 2010
Messages
57
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
india
Activity points
1,681
0 1 2 3 …….. ……. ………. 4031
4032 4033 4034 4035 …….. …….. …….. 8063
8064 8065 8066 8067 …….. …….. ……. 12095
12096 12097 12098 12099 …….. …….. ……..
. . .
consider the first 3x3 matrix from the above
0 1 2
4032 4033 4034
8064 8065 8066
matrix here the center location is 4033 similarly consider next 3x3 matrix as
1 2 3
4033 4034 4035
8065 8066 8067
here the center location is 4034 like this it will goes on....my question is how i can access or write some data in every center location in all 3x3 matrix
 

assume (m*n) matrix...
(0,0) (0,1) ............ (0,n-1)
(1,0) (1,1) ............ (1,n-1)
: : :
: : :
(m-1,0) (m-1,1) ............ (m-1,n-1)

that means u have access the locations
(1,1) to (1, n-2) for second row
(2,1) to (2, n-2) for third row
and till
(m-2,1) to (m-2, n-2) for last but row

by two nested for loops u can achieve this......
 

hi dilinx thanks for yur reply....could you plz explain me in detail or can you give the code as you mention
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top