I have some code in which the line:
multiFileWrite = 0;
multiFileWrite = get(h.extractSeparate,'Value');
within a gui doesn't work despite the function header having the gui h passed to it:
function readAndWriteMessages(src,~,h,~,~,~,~,~,~,~,~)
which doesn't make sense to me because I have another use of h in the same function with get that is working just fine. the following error is what I am getting:
No appropriate method, property, or field 'extractSeparate' for class 'matlab.ui.Figure'.

2 件のコメント

Adam Danz
Adam Danz 2018 年 9 月 27 日
Could you post the relevant code?
Adam
Adam 2018 年 9 月 27 日
編集済み: Adam 2018 年 9 月 27 日
Where is extractSeparate defined? did you spell it correctly? What are the fields of 'h' if you use a breakpoint or the Stop/Pause on errors option? Also if h is a matlab.ui.figure then you would not expect it to have an arbitrary property that you have defined. Your h is a handle to the figure, not to the application that contains all the UI components that are in the figure.

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

回答 (0 件)

カテゴリ

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

製品

リリース

R2016b

質問済み:

2018 年 9 月 27 日

編集済み:

2018 年 9 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by