From: Mike on
Hi

In Desktop New Features Video for R2010a, as user types 'num' (at
02:54), it pops up a selection window for user to choose 'num2cell',
'num2str' ..... etc.

How to do this?
thanks.

Mike
From: AJ on
Mike <sulfateion(a)gmail.com> wrote in message <de8d7159-2e4e-4a34-aa55-06484db60423(a)v34g2000prm.googlegroups.com>...
> Hi
>
> In Desktop New Features Video for R2010a, as user types 'num' (at
> 02:54), it pops up a selection window for user to choose 'num2cell',
> 'num2str' ..... etc.
>
> How to do this?
> thanks.
>
> Mike

You mean like "listdlg" ?
e.g.
S = { 'num2cell', 'num2str' }
[Selection,ok] = listdlg('ListString',S,'SelectionMode','single','Name','Select data sub-type','ListSize',[300 60]);
if ~ok
return; % User pressed cancel
end
From: Mike on
On Mar 27, 3:15 am, "AJ" <a...(a)johnson.lmco.com> wrote:
> Mike <sulfate...(a)gmail.com> wrote in message <de8d7159-2e4e-4a34-aa55-06484db60...(a)v34g2000prm.googlegroups.com>...
> > Hi
>
> > In Desktop New Features Video for R2010a,  as user types 'num' (at
> > 02:54), it pops up a selection window for user to choose 'num2cell',
> > 'num2str' ..... etc.
>
> > How to do this?
> > thanks.
>
> > Mike
>
> You mean like "listdlg" ?
> e.g.
> S = { 'num2cell', 'num2str' }
> [Selection,ok] = listdlg('ListString',S,'SelectionMode','single','Name','Select data sub-type','ListSize',[300 60]);
> if ~ok
>   return; % User pressed cancel
> end

No, though your suggestion is also very good.
I mean in the following
http://www.mathworks.com/support/2010a/matlab/7.10/demos/new-matlab-development-environment-features-in-r2010a.html

at 02:54, the demo shows user type 'num' in editor, then popup
automatically shows some hints for all num***, like num2str and
num2cell.... etc.

Mike
From: Walter Roberson on
Mike wrote:

> I mean in the following
> http://www.mathworks.com/support/2010a/matlab/7.10/demos/new-matlab-development-environment-features-in-r2010a.html
>
> at 02:54, the demo shows user type 'num' in editor, then popup
> automatically shows some hints for all num***, like num2str and
> num2cell.... etc.

Yes, but you haven't made clear what your question is. You want to do
this within in input field in your GUI? You want to add additional
commands to ones known to the command line pop-ups? You want to know how
to program such a thing in a different language? You want to extend the
facility to (e.g.) uigetfile() ? Simply asking us "how to do that?" does
not at all make clear what you are asking for.
From: Nathan on
On Mar 26, 12:03 am, Mike <sulfate...(a)gmail.com> wrote:
> Hi
>
> In Desktop New Features Video for R2010a,  as user types 'num' (at
> 02:54), it pops up a selection window for user to choose 'num2cell',
> 'num2str' ..... etc.
>
> How to do this?
> thanks.
>
> Mike

Well, when you type something, you can hit the "tab" key to try to
autocomplete what you are typing.
When typing "num" in the matlab command window, and then hitting
"tab", you will see a list of commands (and possible saved variables)
that start with "num".
This feature also works in the matlab editor.

If you want to implement this in a Matlab program, that's a different
story.

For more information on this "tab completion", see:
http://blogs.mathworks.com/desktop/2010/03/22/tab-completion-in-the-matlab-r2010a-editor/

I hope that helps.

-Nathan