Prev: Suggestions of routine to fit non-linear data to empirical functions?
Next: imfill fuction source code in java
From: Martha on 5 Jul 2010 16:06 Hello! I have to use different big structures (20000 elements per structure). I did not create the structures, but it seems they are array of structures. I want to load them without using the real name, in order to use a function that does the same code for each one of them. I tried using the next: str1 = 'structure1'; s=load (str1); then I get s = structure1: [5000x1 struct] Checking the size of s and structure1, I get: s 1x1 623532078 struct structure1 5000x1 623531902 struct the sizes are a little bit different. However I don't know how to access to the structure through s, if I do s(1) it gives structure1: [5000x1 struct] I am loading each structure and then clearing the memory. Does somebody know the effective way to do it? Thanks, Martha |