Borrar filtros
Borrar filtros

Unrecognized field name "ss".

3 visualizaciones (últimos 30 días)
Omer Iqbal
Omer Iqbal el 9 de Feb. de 2023
Comentada: Omer Iqbal el 10 de Feb. de 2023
Hi!
I am having an error of unrecognized variable "ss". The variable has already been defined but still getting this error. Please the scareeshot attached and some codes below;
Unrecognized field name "ss".
Error in FASTGUI/InitializeSlipButtonPushed (line 771)
Faults(i).ss = Faults(i).ss.*SSMult;
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 410)
Error while evaluating Button PrivateButtonPushedFcn.
Faults = app.Faults;
for i=1:length(Faults)
Faults(i).ss(1:length(Faults(i).sC),1) = 0;
end
if get(app.UseSurfaceAttributeButton, 'Value') == 1
app.manualflag = 0;
SSChoose = find(contains(get(app.SSDropDown,'Items'),get(app.SSDropDown,'Value')));
for i=1:length(Faults)
if SSChoose == 1
Faults(i).ss(1:length(Faults(i).Tr.ConnectivityList)) = SSCon;
end
if SSChoose == 2
Faults(i)
Faults(i).ss = Faults(i).ssCffs;
end
Faults(i).ss = Faults(i).ss.*SSMult;
Thanks in advance!

Respuestas (1)

Walter Roberson
Walter Roberson el 9 de Feb. de 2023
Faults is empty. In that case you never create ss field for it
  1 comentario
Omer Iqbal
Omer Iqbal el 10 de Feb. de 2023
Thanks for pointing out this! The issue is solved now!!

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by