classdef SPTclass < handle
    %Simple SPT Class
    %   Detailed explanation goes here
    
    properties
        x;
        y;
        timestep;
        aaa=1;  %a default value
        
    end
    
    methods
        function obj=SPTclass(x,y,timestep) %constuctor
            fprintf('hello!\n')
            obj.x=x;
            obj.y=y;
            obj.timestep=timestep;
        end
        
        function PlotTrajectory(obj)
            
            x=obj.x;
            y=obj.y;
            figure  %This opens a new, blank figure
            plot(x,y,'r','linewidth',2)
            xlabel('X (micron)','fontsize',14)
            ylabel('Y (micron)','fontsize',14)
            axis equal
        end
        
        
        
    end
    
end

