Put your object in a function and set it return type being your required data
eg.
function UE_spec = myObject()
....
....
....
end
and then call this function to set the value of x... as
x = myObject();
This will set the value of UE_spec to x ... u may also return multiple values from the function at a same time
Main Topics
Browse All Topics





by: yuk99Posted on 2009-11-06 at 13:37:58ID: 25763293
I assume it's your custom class. Is it one class instance or an array of objects? How do you access a single element? Directly or using a method?
Look at functions arrayfun, cellfun, structfun.