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 commentaires

TADA
TADA le 17 Fév 2019
I Would Say That Most Likely The Name Of That UI Component Changed From popupSpeModSel To Something Else.
Chengye Huang
Chengye Huang le 17 Fév 2019
Modifié(e) : Chengye Huang le 17 Fév 2019
Thanks for comment!
Do you know how to fix this?
Geoff Hayes
Geoff Hayes le 17 Fév 2019
Chengye - look for the code that creates this popup control and you should be able to determine what the new name is.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Tags

Commenté :

le 17 Fév 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by