whats wrong with this app?

조회 수: 6 (최근 30일)
Muazma Ali
Muazma Ali 2024년 2월 4일
편집: Walter Roberson 2024년 2월 5일
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.

답변 (1개)

Alberto Cuadra Lara
Alberto Cuadra Lara 2024년 2월 4일
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
Alberto Cuadra Lara
Alberto Cuadra Lara 2024년 2월 5일
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
Muazma Ali 2024년 2월 5일
But if I have a table osmotic data and I have just declared this table public in app3 and the fields of this table as private properties, will I not be able to plot data based on the fields of osmotic data as visualiseringsapp is supposed to do..?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by