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

Dan

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Dan View all
Updated File Comments Rating
02 Jan 2014 inputsdlg: Enhanced Input Dialog Box (v2.1) Predefined dialog box function to accept user inputs of several forms Author: Kesh Ikuma

Cool, got it working now! Thanks for your help and for making a great program.
-Dan

01 Jan 2014 inputsdlg: Enhanced Input Dialog Box (v2.1) Predefined dialog box function to accept user inputs of several forms Author: Kesh Ikuma

Dear Kesh,
This looks like an awesome tool. However, I can't seem to get it to work in my program. I am getting the following error message:

Error using inputsdlg (line 397)
Not enough FORMATS size for the display.

I don't understand what this error means and would be grateful for your advice. Here's my code (modeled on the demo file you provided):

%%%% Options Dialog Box using inputsdlg
Title = 'Program Options';
Options.Resize = 'on';
Options.Interpreter = 'tex';
Options.CancelButton = 'on';
Options.ApplyButton = 'on';
Options.ButtonNames = {'Continue','Cancel'}; %<- default names, included here just for illustration
Option.Dim = 1; % Horizontal dimension in fields
Prompt = {};
Formats = {};
DefAns = struct([]);

Prompt(1,:) = {'Choose program options',[]};
Formats(1).type = 'text';

Prompt(2,:) = {'Process traces with Chung-Kennedy filter prior to counting steps?','CKfilt'};
Formats(2).type = 'check';
DefAns(1).CKfilt = true;

Prompt(3,:) = {'Apply intensity filter to discard small steps?','IntFilt'};
Formats(3).type = 'check';
DefAns.IntFilt = true;

Prompts(4,:) = {'Select folder containig data to analyze','DataFolder'};
Formats(4).type = 'edit';
Formats(4).format = 'dir';
Formats(4).required = 'on';
DefAns.DataFolder = [];

[Answer,Cancelled] = inputsdlg(Prompt,Title,Formats,DefAns,Options);
%%%% End of dialog box

Contact us