From: Richard on
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