MATLAB Object-Oriented Programming

(Joyce) #1

TotalDistance = 0
TripMarker = 0
end
properties(Dependent)
TripDistance
end
methods
function distance = get.TripDistance(obj)
distance = obj.TotalDistance - obj.TripMarker;
end
end
end


See Also


Related Examples



  • “Modify the Save and Load Process” on page 13-16

  • “Object Save and Load”


See Also
Free download pdf