whats wrong with this app?
Afficher commentaires plus anciens
Hi! :)
I am attaching a small app, visualiseringsapp.
What is wrong with my switch value changed callback function?
I don’t get any plot and don’t get any error either
App3 is a big app so I am not attaching it here.
Visualiseringsapp is calling app3 as you can see.
Réponses (1)
Alberto Cuadra Lara
le 4 Fév 2024
Hi Muazma,
I guess the property Osmotisk_data is obtained from app3, right? In that case, you should refer to
X = app.Callingapp.Osmotisk_data.samlet_vannaktivitet;
Y = app.Callingapp.Osmotisk_data.Osmotic_pressure;
and not directly from app.Osmotisk_data, because that property is not defined in visualiseringsapp.
Additionaly, I do not understand your objective with the else statement
else
plot(app.UIAxes, '','')
end
8 commentaires
Muazma Ali
le 4 Fév 2024
Alberto Cuadra Lara
le 4 Fév 2024
No, what you want can be done using Matlab's built-in function cla, which can be used as follows:
cla(app.UIAxes);
Muazma Ali
le 4 Fév 2024
Modifié(e) : Walter Roberson
le 5 Fév 2024
Alberto Cuadra Lara
le 4 Fév 2024
I see.
- Include app3 as an input parameter (see figure attached).
- visualiseringsapp has to be called from app3.

Muazma Ali
le 5 Fév 2024
Muazma Ali
le 5 Fév 2024
Alberto Cuadra Lara
le 5 Fév 2024
Great! No, you can only access the public properties of app3 object.
Also, the cla function was included in Matlab R2006a, so you should be able to use it.
Best,
Alberto
Muazma Ali
le 5 Fév 2024
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!