Code covered by the BSD License  

Highlights from
Wildcard selection

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 2.46 KB File ID: #14368

Wildcard selection

by Richard Stephens

 

21 Mar 2007 (Updated 21 Mar 2007)

Simple GUI to allow user to select from cell array of strings using wildcard search

| Watch this File

File Information
Description

WILDSEL - wild card selection from cell array of strings using a GUI.
% It allows the use of wildcards '*' and '?' and displays only the matching
% elements of the cell array.
% The user selects the entry he/she wants and the index of this
% element in the original array is returned.
% The '*' wildcard stands for any number (including zero) of characters.
% The '?' wildcard stands for a single character.
%
% Usage:
% IDX = WILDSEL(ARRAY) returns the index, IDX, of the selected item in the
% cell array of strings ARRAY.
%
% Example:
% A = {'Hello world!'; 'Goodbye world!'; 'Goodbye everyone'};
% idx = wildsel(A);
%
% brings up the GUI. Type the search string in the top edit box, e.g. *world?
% and press [Return] to display the reduced list. Click on the item to select
% and the index of this string in the cell array, A, is returned.

Acknowledgements
This submission has inspired the following:
Wildcard String Find
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Richard Stephens 22 Oct 2008 09:05:27
example Richard Stephens 22 Oct 2008 09:05:27
wildcard Richard Stephens 22 Oct 2008 09:05:27
list Richard Stephens 22 Oct 2008 09:05:27
cell array Richard Stephens 22 Oct 2008 09:05:27

Contact us at files@mathworks.com