Code covered by the BSD License  

Highlights from
sexy

4.5

4.5 | 10 ratings Rate this file 5 Downloads (last 30 days) File Size: 1.54 KB File ID: #11150

sexy

by Naor Movshovitz

 

22 May 2006 (Updated 26 May 2006)

Display a symbolic expression in a human readable form. Extension of the built-in pretty function.

| Watch this File

File Information
Description

If S is a symbolic expression, then sexy(S) opens a small figure window (message box really) displaying the expression S in a "human-like" form.

Requires the symbolic math toolbox.

Also requires that your Matlab release support 'latex' in the 'interpreter' property of text objects, I forget which was the first release that supported this.

Acknowledgements
This submission has inspired the following:
Equation Check, Latex Figure Output
Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7.2 (R2006a)
Other requirements Matlab version that supports 'latex' as a value to the 'interpreter' property of text objects.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (12)
24 May 2006 Rainer Merk  
01 Jun 2006 Roger Dufresne

A must to have for doing complicated math

03 Jun 2006 arashf sadeghi  
04 Jun 2006 aza saza  
07 Jun 2006 Eric Rosenberg

Works fine, saved me from a typo.

16 Aug 2006 Angie Blue

Excellent tool, I have been looking for something like this. Thank you.

26 Oct 2006 Yair Movshovitz

Nice....Nice

26 Dec 2006 Brent Lewis

Great Code

06 Jul 2007 Claude Girard

Does its job well. And I like the irony in the name :)

25 Jun 2008 M Prasad

I find that for long expressions the msgbox isnt able to print the whole expression out. any ideas?

20 Jul 2008 Vijay Desai

It is great for "medium" size expressions but doesn't work with long expressions

20 Jul 2008 Vijay Desai

Continuing with previous review:For the really long expressions, maybe we can break it up into a number of subexpressions and display them individually.

Please login to add a comment or rating.
Updates
24 May 2006

Fixed:
Size of figure window.
Position of OK Button.

26 May 2006

fixed:
Function names now typeset in upright font.

Tag Activity for this File
Tag Applied By Date/Time
symbolic math Naor Movshovitz 22 Oct 2008 08:26:31
pretty Naor Movshovitz 22 Oct 2008 08:26:31
symolic expression Naor Movshovitz 22 Oct 2008 08:26:31
display Naor Movshovitz 22 Oct 2008 08:26:31
mathematics Naor Movshovitz 22 Oct 2008 08:26:31

Contact us at files@mathworks.com