Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: input prompt for functions
Replies: 3   Last Post: Dec 30, 2011 10:07 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jim Hokanson

Posts: 14
Registered: 1/27/11
Re: input prompt for functions
Posted: Nov 22, 2011 5:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thanks for the reply. There are a few issues I have with that, some perhaps more valid with others. It also appears I need to clarify my question ....

Let's say you want to use the plot function, you get started and enter:
plot(

Now, IF YOU WAIT A WHILE, a tip window will come up letting you know that you know various ways of entering the inputs for plot.

for example you'd see the following lines
plot(Y)
plot(X1,Y1,...,Xn,Yn)
plot(X1,Y1,LineSpec,...,Xn,Yn,LineSpec)

As you type, options that don't fit drop out. In general for user created files there is usually only one line, which is literally the display of the function declaration line.

i.e if I have something like this:
function myFunction(height,weight)
%myFunction
CODE

The prompt would show up as:
myFunction(height,weight)

Help has the potential advantage of pulling out more potential forms of the input, ASSUMING things have been documented properly. This however requires you to change cursor location to being over the function, as opposed to something that allows you to keep typing.

Ideally there would be a solution in which you have literally typed:

myFunction(height,

and then using some key you get the prompt reminding you that the second input to that function is weight. The important point is that the functionality is there, however it disappears if you move your cursor away and come back or tab complete a variable name. Also, it never shows up if you start typing the inputs to the function before the prompt appears (only to realize you don't know all of the necessary inputs).



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.