views:

76

answers:

1
+2  A: 
room = compartment();
conc = concrete();
fire = fireProperties(Troom);

Yeah, there's your problem right there. Troom can't be used in the context of the properties block. Either put the constant in for Troom or move these into the constructor where they belong.

kwatford
Done! Great! Thanks a lot!One more question: The OOP docs on Mathworks seem long winded and confusing. Is there a better treatment for matlab OOP than on mathworks?
OrangeRind
You should at least *consider* using Python+numpy+scipy if you are going to do OOP for scientific computing. Python is much better suited for OOP than Matlab, IMO.
Olivier
kk. will look into that. Thnx! :)
OrangeRind