Hi guys,
I want to use a chart object (.sfx extension) to command some of the widjets I've created with GUIDE.
I created a chart with
edit nameOfTheChart.sfx
Then I created a new property in my app
chartObject = nameOfTheChart
The events I've created in the chart module are recognized in GUIDE but how do I change properties of a widget using an expression in the chart module ?
I tried
app.Lamp.Enable = true
but nothing happen. It only creates an 'app' data object. I guess I need to specify a data object which is linked to the app data.

回答 (1 件)

Thomas Mongaillard
Thomas Mongaillard 2020 年 3 月 23 日

0 投票

Well I just found a solution.
Inside the callback fonction of my ON/OFF button, I start with
step(app.nameOfTheChart,'app',app)
Isn't it possible to write this in an initialization fonction ?

1 件のコメント

Thomas Mongaillard
Thomas Mongaillard 2020 年 3 月 23 日
It is possible with a callback fonction called 'Startup Fcn' for UIFigure.

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

カテゴリ

ヘルプ センター および File ExchangeStateflow についてさらに検索

製品

リリース

R2019b

質問済み:

2020 年 3 月 23 日

コメント済み:

2020 年 3 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by