>> classdef (attribute1 = value,...) classname(< superclass_name)
properties
PropName
end
methods
methodName
end
events
EventName
end
end>> classdef node < handle
properties
data
end
properties(SetAccess = public)
next
end
methods
function node = node(data)
if nargin > 0
node.data=data;
end
end
end
endmatlab 基础知识class < superclass_name
原文地址:http://blog.csdn.net/u013476464/article/details/41317325