Wrap a long syms equations
by Mohannad Hakeem
27 May 2009
(Updated 28 May 2009)
wraps a long syms equation so that it becomes more readable.
|
Watch this File
|
| File Information |
| Description |
WRAP_string(string1) rewrites a long syms equation and wraps
it so that it becomes more readable. It automatically divides the expression into individual lines with three dots "..." at the end of each line. Moreover, it detects the existence of operators +,-,*,/ so that it doesn't cut a long name of a variable (such as Lamda_w).
Inputs:
string1: An expression written in syms
n_columns: users can change the maximum width of each line
|
| Required Products |
Symbolic Math Toolbox
|
| MATLAB release |
MATLAB 7.0.4 (R14SP2)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 28 May 2009 |
this file was updated so that it ends each line on a mathematical operator (+,-,*,/). in the previous edition, the code might end a line while cutting the name of a long variable (such as Lamda_w) |
|
Contact us at files@mathworks.com