Prev: "Continuous sample time not allowed for input port of cosim block" error
Next: Read xlsx file to matlab
From: Michel bertrand on 2 Dec 2009 21:00 What does happen when I execute the following statement: [ Obj([1 2 5].fn] = deal( 10, 20 30) Obj is an object array I have constructed, fn a property. I have written a subsassign method, but running through it with the debugger, I can't figure out how to make it work with a statement such as the one above . Function deal put the results in varargout, but it seems onhly the first varargout ( i.e. varargout{1} is tranfered to method subsassign. The following code would work though: [ Obj(1).fn Obj(2).fn Obj(5).fn] = deal( 10, 20 30) Thanks all. Michel Betrand p.s. my object constructor very old (1999-2000 or so), built with the old way using the @ClassName directory approach; so perhaps this problem would not arise with the constructor tools now available!!. |