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

inheritedImp.sadsT
classdef sadsT < valueImp.sads
    % Sensor Array data set class with additional test run number
    properties 
        TestRunNumber % Test run number
    end
    methods
        function obj=sadsT(Data, Wavelength,SampleRate,Spacing,Name,TestRunNumber)
            % Call super class constructor
            obj@valueImp.sads(Data, Wavelength,SampleRate,Spacing,Name);
            obj.TestRunNumber=TestRunNumber;
        end
        function plot(obj)
            % PLOT Plot the sensor array sample data set
            % Example:
            %  plot(ds);
            plot@valueImp.sads(obj) % Call super class plot
            title([obj.Name ', Test Run Number: ' int2str(obj.TestRunNumber)]);
        end     
    end
end

Contact us