From: Steven Lord on

"Richard " <REMOVETHISrcaldwellie(a)yahoo.com> wrote in message
news:hqj7is$sq2$1(a)fred.mathworks.com...
> can anyone explain why the connectedTPs property of my bsobj object isn't
> being modified?--bsobj is an array of bsobj objects
> function tpobj = assignBS(tpobj,bsobj)
> for i=1:length(bsobj)
> [closestBSdist,closestBSID]=min(tpobj.BSdistances(:,2));
> tpobj.ConnectedBS=closestBSID;
> bsobj(i).connectedTPs=[bsobj(i).connectedTPs; [
> tpobj.IDnumber]];
> end
> end

I can't be certain without seeing how you defined the class of which the
bsobj objects are instances, but my guess is that it's not a handle class.

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/brfylwk-1.html

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


 | 
Pages: 1
Prev: S-function mdlOutputs loop
Next: Contour Map