The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: change the form of the ans prompt?
Replies: 5   Last Post: Jan 27, 2012 3:39 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Uwe Brauer

Posts: 91
Registered: 12/7/04
Re: change the form of the ans prompt?
Posted: Jan 27, 2012 2:41 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Doug Schwarz <> wrote in message <uKCUq.1620$1B1.487@newsfe14.iad>...
> On 1/27/2012 2:00 PM, Uwe Brauer wrote:
> > Hello
> >
> > when I type

> >>> x=5
> >
> > the matlab prompt gives me
> >
> > x=
> >
> > 5
> >
> > I find this very disturbing.
> >
> > I would much prefer to have
> >
> > x=5
> >
> > all in the same line! is there any variable which I could use to obtain
> > the setting I want?
> >
> > thanks
> > Uwe Brauer

> Uwe,
> You can overload the display method for the double class and make it do
> anything you want. To do this, create a directory "@double" and put it
> inside a directory that is on your path (do not put @double on the
> path). Then create display.m inside @double. In display.m you can
> define any behavior you want, but beware! It's trickier than you might
> think to get this right. You have to handle scalars and matrices of any
> size. Good luck.

Thanks for the instructions. I just searched in my matlab directories, display.m and it seems that each toolbox has its own display.m.

What is the best one to start?

I basically use Matlab ode functions, or write up my own ode alg.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.