I have a button in my GUI that generates a figure. This figure contains a plot and i use the Brush/selectdata to select a part of it and create a variable. The variable is generated in my workspace and i cant use it my GUI
Is there a way to generate the variable automatically in my GUI?
Thanks in advance

回答 (1 件)

Jan
Jan 2017 年 6 月 19 日

0 投票

You can define a ActionPostCallback for the brushing. Then deliver the figure handle as input argument and use:
function BruchCallback(Src, EventData)
H = guidata(EventData.Axes); % Get handles struct from figure
H.Data = ...
guidata(EventData.Axes, H);
This is untested and I do not know what you have to insert for the "...", because I do not know how you "create a variable". But perhaps it helps.

1 件のコメント

MARC KATRA
MARC KATRA 2017 年 6 月 19 日
編集済み: MARC KATRA 2017 年 6 月 19 日
Thanks for your feedback.
Create a variable is when you select data by using the brush and then store them in your workspace(right-click on the brushed data).

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Just for fun についてさらに検索

質問済み:

2017 年 6 月 19 日

編集済み:

2017 年 6 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by