I see you got already many good answers. The task is interesting and I am sure you will learn a lot from it.
Lokales are very good and can be very useful. You also learn a lot by trying out other ways like using boxing. Also working with many dimensions until you find the way that best fits you and your data. I do not know matlab but I am interested in hearing more how you progress with this. On Feb 2, 2013 12:09 AM, "David Porter" <[email protected]> wrote: > I am trying to port some old code from MatLab to J. It seems that it > should be easy, but I am finding one aspect of it difficult. > > In MatLab I used their data structure with several sub-levels. Four > features seemed very nice to me: 1, Many constants could be associated > with a single overall name (say q1.) . 2, I could add new ones at will > (say q1.test). 3, I could duplicate the whole thing with a single > assignment (say q2 = q1). 4, The hierarchical nature of the structure is > as obvious as it is easy to make or use. > > I assume that the use of locales is the answer to providing a similar > facility in J. I am aware of the examples like plot that keep the plot > variables in its own locale , but I must be missing some fundamental > concept as I have struggled with this for a few days and cannot quite get > my arms around it. > > Thanks, > Dave Porter > ------------------------------**------------------------------**---------- > For information about J forums see > http://www.jsoftware.com/**forums.htm<http://www.jsoftware.com/forums.htm> > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
