Rank: 186347 based on 0 downloads (last 30 days) and 0 file submitted
photo

John

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by John View all
Updated File Comments Rating
14 Aug 2013 inputsdlg: Enhanced Input Dialog Box (v2.1.2) Predefined dialog box function to accept user inputs of several forms Author: Kesh Ikuma

Nvm, I was able to get a solution (it might not be the prettiest, but it works :-) ).

For other's future reference I will explain what I did. In Kesh's inputsdlg_demo.m file I added the following lines of code after prompt 5:

%---------

EnableCheck = {'on','off'};

x=1;

Formats(2,4).callback = @(~,~,h,k)set(h(k+1), 'enable', EnableCheck{EnableDisable(x)});

%---------

And I called I simple function that I wrote (titled EnableDisable). I have included that code below:

%---------
% enable/disable controls associated with (some) % checkboxes
function x = EnableDisable(x)

global x

a=1;
b=2;
x = (a+b)-x;

end

%---------

I know that this is probably not the best way to go about it, but it does work if anyone is interested.

14 Aug 2013 inputsdlg: Enhanced Input Dialog Box (v2.1.2) Predefined dialog box function to accept user inputs of several forms Author: Kesh Ikuma

@Kesh, Thanks again for this awesome function! Your updates are working great!

I am actually interested in doing what I think your "Enable enhanced mode" checkbox is supposed to be doing. I am assuming that what you were thinking about doing here is creating a callback function that then Enables/Disables a different Prompt. However, it appears that you haven't included your callback function. So, right now it is just a checkbox.

I am currently working to add this callback to my current dialog box. But, I thought if you already had it completed then it could save me some work if you wouldn't mind sharing it. :-)

31 Jul 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz

31 Jul 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz

Hi Doug!

This is a great tool!

Is there some way that I could have the function only show folders (i.e. similar to uigetdir)?

31 Jul 2013 inputsdlg: Enhanced Input Dialog Box (v2.1.2) Predefined dialog box function to accept user inputs of several forms Author: Kesh Ikuma

This looks like a great tool!

However, I appear to be unable to run the demos or the examples shown in the "File Exchange Pick of the Week".
I am getting a variety of errors such as:

Error 1 (1st example in "File Exchange Pick of the Week"):

Error using struct
Field names must be strings.

Error in inputsdlg>checkformats (line 1086)
Formats = repmat(struct(fields{:}),NumQuest,1);

Error in inputsdlg (line 388)
[Formats,err] = checkformats(Formats,NumQuest,FormatDefaultFields);

Error 2 (2nd example in "File Exchange Pick of the Week"):

Error using inputsdlg (line 394)
Default text data format must be char.

Error 3 (attempt to run inputsdlg_demo_tile.m)

Error using inputsdlg (line 394)
Default dir must be a valid path.

Error in inputsdlg_demo_tile (line 57)
inputsdlg(Prompt,Title,Formats,DefAns,Options)

Error 4 (attempt to run inputsdlg_demo.m):

Error using inputsdlg (line 394)
Default integer data must integer.

Error in inputsdlg_demo (line 187)
[Answer,Cancelled] = inputsdlg(Prompt,Title,Formats,DefAns,Options)

However, the inputsdlg_demo_contactinfo.m works great! I know that I have included a lot of info here, but I thought that you might be able to investigate this better with more information.

Contact us