フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
misbah 0332
misbah 0332 2015 年 10 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Martin Schätz
Martin Schätz 2015 年 10 月 17 日
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.

回答 (1 件)

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

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by