Error in "reference to non-existent field"
Show older comments
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 Comments
TADA
on 17 Feb 2019
I Would Say That Most Likely The Name Of That UI Component Changed From popupSpeModSel To Something Else.
Chengye Huang
on 17 Feb 2019
Edited: Chengye Huang
on 17 Feb 2019
Geoff Hayes
on 17 Feb 2019
Chengye - look for the code that creates this popup control and you should be able to determine what the new name is.
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!