Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

i want to make GUI for this code, only one push button and one axis. code is given in body

1 vue (au cours des 30 derniers jours)
misbah 0332
misbah 0332 le 17 Oct 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
if true
% code
end
close all;
clear all;
clc;
comport = serial('COM17', 'BaudRate', 9600);
fopen(comport);
x=0;
a=0;
b=0;
while(x<100)
x=fscanf(comport, '%d');
a=x(:,1);
b=x(:,2);
drawnow;
plot(a,b,'o');
end
fclose(comport);
  1 commentaire
Martin Schätz
Martin Schätz le 17 Oct 2015
And what is your question? If the GUI doesn't work, then it would be better to add the code and info about what doesn't work for you.

Réponses (1)

Jan
Jan le 17 Oct 2015
You have a figure with 1 axes already, so all you need is to add a uicontrol('Style', 'Pushbutton') command.

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by