Wrap a long syms equations
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
Cite As
Mohannad Hakeem (2024). Wrap a long syms equations (https://www.mathworks.com/matlabcentral/fileexchange/24273-wrap-a-long-syms-equations), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.