Skip to content

Commit 2f484ff

Browse files
committed
[PitchGain.m] Fixed the error caused during linearized WT file loading
This fix solves the issue when the linearization file has different number of linearization points than the default one
1 parent 782d11b commit 2f484ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

subfunctions/PitchGain.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@ function LoadLinMat_pushbutton_Callback(hObject, eventdata, handles)
787787
handles.Control.Pitch.Notch2_wnGS = zeros(14,1);
788788
end
789789

790+
if handles.TableSize ~= length(LinListBoxItemsIndex)
791+
handles.TableSize = length(LinListBoxItemsIndex);
792+
end
793+
790794
% Update the table with the pitch angles data
791795
for i = 1:handles.TableSize
792796
if isnan(Lin.Pitch(LinListBoxItemsIndex(i)))

0 commit comments

Comments
 (0)