Synchronized Data Presentations in a Programmatic UI
% Obtain the data for that column
ydata = htable.Data;
haxes.NextPlot = 'Add';
% Draw the line plot for column
plot(haxes, ydata(:,column),...
'DisplayName', colname,...
'Color', colors{column});
else % Adding a line to the plot
% Find the lineseries object and delete it
delete(findobj(haxes, 'DisplayName', colname))
end
end