classdef Point properties x double y double end methods function obj = Point(xIn, yIn) obj.x = xIn; obj.y = yIn; end end end