matlab - Unable to use the output of inputdlg in the get function -


I want to use input value from the dialog box and save it as sp_name. Saving it directly to sp_name is giving me an error Please help me It looks as soon as inputdlg stops, ans variable is lost What should I do?

Code:

  ans = inputdlg ('Save As:', 'New User'); Sp_name = get (handles.ans, 'string');  

Error:

  References to non-existent fields 'ans'  
  sp_name = ans {1};  

In your code above, Matlab does not recognize the structure and throws this error.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -