set(handle​s.Low,'Str​ing',Low

i am a newbie at Matlab. I am trying to run a code but there is a code line (set(handles.Low,'String',Low)) which gives INVALID OR DELETED OBJECT error. any solutions?

回答 (1 件)

Mehmed Saad
Mehmed Saad 2020 年 4 月 9 日
編集済み: Mehmed Saad 2020 年 4 月 9 日

0 投票

Your figure (or gui) is closed that's why this error occured
It looks like you have some text type object on figure like title,xlabels,ylabels, ...etc
what you are trying to do is setting the textproperty 'string' equal to variable low but when MATLAB tries to access the object whose handle is passed to it, it didn't find any thing so it gives you that error.

3 件のコメント

Sardar Jaffar Ali
Sardar Jaffar Ali 2020 年 4 月 27 日
you said my figure (or gui) is closed, how to open it?
Mehmed Saad
Mehmed Saad 2020 年 4 月 28 日
donot close it before this line
(set(handles.Low,'String',Low))
Sardar Jaffar Ali
Sardar Jaffar Ali 2020 年 4 月 29 日
But how to open my GUI? i will not close it but pls guide me how to open it?

この質問は閉じられています。

タグ

質問済み:

2020 年 4 月 9 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by