Error in "reference to non-existent field"
이전 댓글 표시
cDat = get(h.label,'Value');
speLabels = get(h.popupSpeModSel,'String');
if get(h.popupSpeModSel,'Value') == 1
selSpe = 1:size(data{cDat}.spe,1);
else
selSpe = get(h.popupSpeModSel,'Value')-1;
end
if isempty(ref{1}.signal)
id = 0;
else
id = length(ref);
end
for k2 = selSpe
id = id+1;
ref{id}.label = ['r' num2str(id) ': ' data{cDat}.label '_' speLabels{k2+1}];
ref{id}.wl = data{cDat}.wl;
ref{id}.signal = data{cDat}.spe(k2,:)';
end
updateRef
set(h.popupRefList,'Value',id);
end
function callback_Spe_Sld(varargin)
% by FS 16/11/2015
cDat = get(h.label,'Value'); % idx of dataset
xdata = data{cDat}.wl;
tAx = data{cDat}.t;
tUnit = get(h.timeUnits, 'String');
ydata = data{cDat}.dtt;
fh = figure(); hold all; ax = gca; set(fh,'Name','Spectra Slider');
pos = get(fh,'Position');
pl = plot(xdata, ydata(:,1));
set(ax,'ylim',[min(min(ydata)), max(max(ydata))]);
xlabel('Wavelength (nm)');
ylabel('\Delta T/T');
title(data{cDat}.fname,'Interpreter','none');
leg = legend(sprintf('%d %s',tAx(1),tUnit));
When I try to save my file using this function,
Reference to non-existent field 'popupSpeModSel'.
Error in speAnalysis/callback_Spe_Save2Ref (line 2325)
speLabels = get(h.popupSpeModSel,'String');
Error while evaluating UIControl Callback.
This error always pop up. It was fine yesterday but havent worked today.
댓글 수: 3
TADA
2019년 2월 17일
I Would Say That Most Likely The Name Of That UI Component Changed From popupSpeModSel To Something Else.
Chengye Huang
2019년 2월 17일
편집: Chengye Huang
2019년 2월 17일
Geoff Hayes
2019년 2월 17일
Chengye - look for the code that creates this popup control and you should be able to determine what the new name is.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!