Matlab is a silly language
Apr. 6th, 2009 03:55 amplot(record{3}.nEvals,record{3}.objec) does not work (I get a colorful straight line).o = record{3}.objec;
n = record{3}.nEvals;
plot(n,o) works: I get the curve I'm looking for.Other concerns: I'd like to pass objects by reference, and avoid implementing my own data structures (List anyone?).
I'm hoping to switch to NumPy this summer. They say the syntax is remarkably similar, and I'd mostly only have to worry about array bounds (Matlab counts from 1, Python from 0).
(no subject)
Date: 2009-04-06 01:53 pm (UTC)Pass by reference
Date: 2009-04-08 11:35 am (UTC)As for the behavior you are seeing - it looks like there might be something else going on with your code. I built a little snippet that reproduces your example, and it seems to work fine.
- scott
http://www.mathworks.com/matlabcentral/fileexchange/authors/3777