Code covered by the BSD License  

Highlights from
What's New for Object-Oriented Programming in MATLAB Webinar - Code Examples

image thumbnail
from What's New for Object-Oriented Programming in MATLAB Webinar - Code Examples by Stuart McGarrity
Code examples used in "What's New for Object-Oriented Programming in MATLABĀ®" Webinar

ev
classdef ev < handle
    properties (SetObservable)
        data
    end
    methods
        function updateData(obj)
            obj.data=rand(10,1);
            data=obj.data;
            save 'data.mat' 'data';
            notify(obj,'SavedData')
        end
    end
   events
        SavedData
   end
end 

Contact us at files@mathworks.com