matlab Appdesigner TreeNode's NodeData property is unable to be set as a char that is a matapp file name

6 次查看(过去 30 天)
matlab Appdesigner TreeNode's NodeData property is unable to be set as a char that is a matapp file name
i have a written app named 'graphApp', it's unable to paste it into NodeData property. That will directly call the 'graphApp' file and run it. Why it automatically calculate the content? I just want a normal string
Should this be treated as a bug?
P.S.
Some mfile or app file (like line )trigger this,while some not(like error ). Ididnt do much experiment
  2 个评论
Steven Lord
Steven Lord 2023-5-10
What does "unable to paste it" mean in this context?
  • Do you receive warning and/or error messages? If so the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window) may be useful in determining what's going on and how to avoid the warning and/or error.
  • Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
  • Did MATLAB crash? If so please send the crash log file (with a description of what you were running or doing in MATLAB when the crash occured) to Technical Support so we can investigate.
鑫源
鑫源 2023-5-10
编辑:鑫源 2023-5-10
"unable to paste it" just mean 'graphApp' these 8 characters typed or pasted in the NodeData value box will just run the input itself as in the command window. Usually I just want a char as NodeData discription.
It's not a error/warning. It just behaves in a way I dont understand. It executes the content not like those text input box. Where should I put my char variable then? Such a place should not just store arrays
Thank you for your answer

请先登录,再进行评论。

回答(1 个)

Steven Lord
Steven Lord 2023-5-10
Can you show us the code where you're trying to get access to the word that you typed or pasted into the NodeData box? I'm guessing you're calling eval or feval or trying to pass that text through str2num, any of which would try evaluating that as a command.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by