I am working with Matlab GUI. My problem is the plots are not updated when I change the input data. My code is long but here is the plotting function I am using:
axes(handles.Diagram1)
hold all
for i=1:6:numel(t)
plot(rn,E(i,:)/1000000)
end
set(axesHandle,'Diagram1','Diagram1');
The tag of the axis plot is "Diagram1!
How can I fix this?