For Programmers: Free Programming Magazines  


Home > Archive > Matlab > February 2007 > help on a little code !









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author help on a little code !
omr

2007-02-28, 7:14 pm

hi all,

I use the following code to calculate direct distances between
centroid of elements in 2D grid

pos=gridtop(kx,ky);
dis=delta*dist(pos);

kx ,ky are the number of elements in X and Y direction, currently I’m
dealing with situation when the grid elements have square size
(deltax=deltay=delta), I’m trying to modify the code so I can use
different delta in x and y direction (deltax≠ deltay).
So I’m expecting instead of having one matrix results of direct
distance between centroids, I should have 2 matrixes one for x
distances and another for y distances.

Any help on that!

Appreciated
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com