Prev: ANFIS
Next: Curve fitting
From: Mario Fatafehi on
syms a b c;
a=11/19;
b=3/17;
c=1/7;
G=a + b +c;
pretty(G)

Error says ??? Undefined command/function 'pretty'. Any help?
From: ImageAnalyst on
No. "pretty()" is not a built-in command. What did you expect it to
do? You must supply the definition of pretty because it does not
exist until you do.
From: Mario Fatafehi on
"Mario Fatafehi" <coruba9(a)hotmail.com> wrote in message <hop5tt$b0o$1(a)fred.mathworks.com>...
> syms a b c;
> a=11/19;
> b=3/17;
> c=1/7;
> G=a + b +c;
> pretty(G)
>
> Error says ??? Undefined command/function 'pretty'. Any help?

Its okay, I solved it.
G=sym(11/19)+sym(3/17)+sym(1/7)

pretty(G)
From: ImageAnalyst on
On Mar 28, 11:26 pm, ImageAnalyst <imageanal...(a)mailinator.com> wrote:
> No.  "pretty()" is not a built-in command.  What did you expect it to
> do?  You must supply the definition of pretty because it does not
> exist until you do.

--------------------------------------
I don't see how doing that for G would have made pretty() all of a
sudden become defined, but I don't have Simulink. Maybe pretty is a
built in command for Simulink. But whatever, as long as it's
working....
From: Roger Stafford on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <03b6f7fc-3fa9-4b56-95fd-f6cd2a55f531(a)r1g2000yqj.googlegroups.com>...
> On Mar 28, 11:26 pm, ImageAnalyst <imageanal...(a)mailinator.com> wrote:
> > No.  "pretty()" is not a built-in command.  What did you expect it to
> > do?  You must supply the definition of pretty because it does not
> > exist until you do.
>
> I don't see how doing that for G would have made pretty() all of a
> sudden become defined, but I don't have Simulink. Maybe pretty is a
> built in command for Simulink. But whatever, as long as it's
> working....
-------------------
The 'pretty' function is built-in for my (admittedly rather ancient) Symbolic Math Toolbox, and it's a very important function, too, in my opinion. I would miss it very much if it hadn't been included. I don't have Simulink.

(I had to go to Google Groups to see whom you were addressing, ImageAnalyst. It doesn't show up on Matlab Central.)

Roger Stafford
 |  Next  |  Last
Pages: 1 2
Prev: ANFIS
Next: Curve fitting