Clear Filters
Clear Filters

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

6 views (last 30 days)
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 Comments
Steven Lord
Steven Lord on 10 May 2023
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.
鑫源
鑫源 on 10 May 2023
Edited: 鑫源 on 10 May 2023
"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

Sign in to comment.

Answers (1)

Steven Lord
Steven Lord on 10 May 2023
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.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!