www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CustomClassPagesExample.m

    %% Custom Class Pages  
% Display formatted help text for a custom class.
%
% The class file |sads.m| is an example file that shows how to create a class.
% Add the example folder to the path and request the documentation for |sads|. 
addpath(...
   fullfile(matlabroot,'help','techdoc','matlab_env',...
   'examples'))
doc sads  

%% 
% Display the help for the |steer| method of the |sads| class. Because the help 
% text follows MATLAB conventions, MATLAB formats the display in the browser.   
doc sads.steer