필터 지우기
필터 지우기

In appdesigner, how do I reference a variable I just defined generally?

조회 수: 1 (최근 30일)
Iddo Weiner
Iddo Weiner 2019년 3월 2일
댓글: Iddo Weiner 2019년 3월 3일
Hi, in app designer I followed this procedure:
In my case T is a table. After defining it I also want to parse it a little and create sub variables based on data in T. I found out that this is tricky... When I try running the following code, I get an error:
Undefined function or variable 'T'.
If I try app.T - I get the same error.
So - how do I reference T?
properties (Access = public)
T = readtable('All_proteins_summary.csv'); % get data
H = height(T) % also tried app.T --> also soesn't work
end
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2019년 3월 2일
Iddo - where are you observing the error Undefined function or variable 'T'? In the above properties code or in a callback? I think you need to do the parsing elsewhere like in the StartupFcn instead. The properties block may just be for defining and initializing properties.
Iddo Weiner
Iddo Weiner 2019년 3월 3일
Good question, sorry I didn't make it clear enough.
I'm observing this error within the properties code.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Integrity Kits for Industry Standards에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by