From: Oriane Le Pocher on
Hello!

I've seen the following equation in a matlab file :

T11 = simple(0.5*m1*v1.'*v1);

And I was wondering what is the use of "simple" ?

Thank you in advance for your answers.
From: Oriane Le Pocher on
"Oriane Le Pocher" <cixi(a)yopmail.com> wrote in message <hvptt3$c22$1(a)fred.mathworks.com>...
> Hello!
>
> I've seen the following equation in a matlab file :
>
> T11 = simple(0.5*m1*v1.'*v1);
>
> And I was wondering what is the use of "simple" ?
>
> Thank you in advance for your answers.
From: Torsten Hennig on
> "Oriane Le Pocher" <cixi(a)yopmail.com> wrote in
> message <hvptt3$c22$1(a)fred.mathworks.com>...
> > Hello!
> >
> > I've seen the following equation in a matlab file :
> >
> > T11 = simple(0.5*m1*v1.'*v1);
> >
> > And I was wondering what is the use of "simple" ?
> >
> > Thank you in advance for your answers.

Citation:
A common problem with symbolic calculations is that the answer returned is often not in its simplest form. MATLAB's function 'simple' will perform all of the possible function manipulations and then return the one that is the shortest.

Best wishes
Torsten.
From: Steven Lord on

"Oriane Le Pocher" <cixi(a)yopmail.com> wrote in message
news:hvptt3$c22$1(a)fred.mathworks.com...
> Hello!
>
> I've seen the following equation in a matlab file :
>
> T11 = simple(0.5*m1*v1.'*v1);
>
> And I was wondering what is the use of "simple" ?

SIMPLE is a function from Symbolic Math Toolbox that attempts to find a
short representation of a symbolic expression:

http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/simple.html

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com