Thread Subject: Simple Output Display Question

Subject: Simple Output Display Question

From: torg1976@hotmail.com (Michael Rose)

Date: 8 Oct, 2004 17:32:20

Message: 1 of 2

I'm just trying to supress the
  ans =

result from the functions. I just want my final output displaced
which I can get use disp() or fprintf() to format them the way I want.
But i always get the ans = after all my desired ouput...

So it currently looks like...

    >>function(a,b)
    Your answer 1st is x. Your second is y.
    ans =
      y
    >>

I just want it to show...

    >>function(a,b)
    Your answer 1st is x. Your second is y.
    >>

Thanks.
    

Subject: Simple Output Display Question

From: Brett Shoelson

Date: 8 Oct, 2004 13:55:09

Message: 2 of 2


"Michael Rose" <torg1976@hotmail.com> wrote in message
news:cyqpwv12ttkw@legacy...
> I'm just trying to supress the
> ans =
>
> result from the functions. I just want my final output displaced
> which I can get use disp() or fprintf() to format them the way I want.
> But i always get the ans = after all my desired ouput...
>
> So it currently looks like...
>
> >>function(a,b)
> Your answer 1st is x. Your second is y.
> ans =
> y
> >>
>
> I just want it to show...
>
> >>function(a,b)
> Your answer 1st is x. Your second is y.
> >>
>
> Thanks.
>
>

Try putting a semicolon after the function call.
Brett

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com