image thumbnail

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

by

 

10 Apr 2008 (Updated )

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