MATLAB Answers

0

how can i use slider to plot many data?

Asked by Moris Bouja on 19 Jul 2018
Latest activity Commented on by Geoff Hayes
on 26 Jul 2018
i have many data files , i want to plot all data with slider in Gui how to make datanumber as a slider value and plot them?? help please . this is my program in gui
x=mydata{1,datanumber}.data(:,1);
y=mydata{1,datanumber}.data(:,2);
u=mydata{1,datanumber}.data(:,3);
v=mydata{1,datanumber}.data(:,4);
axes(handles.axes1);
%figure()
contourf(x,y,V_mag,50,'linestyle','none');
hold on
quiver(x(1:4:end),y(1:4:end),u(1:4:end),v(1:4:end),2,'color',[0 0 0])
set(gca,'fontsize',14);

  5 Comments

Moris - you will need to pass the slider value into your program or function.
i did it but matlab can't read this value ; "undefined variable or function"
Moris - you will need to show your code.

Sign in to comment.

0 Answers