我在matlab中做了以下课程。
classdef details
% SCORES Summary of this class goes here
% Class for stroring the individual scores array of each of the
% comparison of the models and the test files including the number of
% coefficients used and number of gaussian
properties(SetAccess=public)
name;
rollno=0;
batch=0;
branch;
image;
end
methods
end
end
我正在通过以下方式访问它
detail=details;
detail.name=get(handles.edit2,'string');
detail.rollno=str2num(get(handles.edit3,'string'));
在运行程序时,它给出以下错误:
???不存在用于类详细信息的公共字段 rollno。
不知道错在哪里??????