Is there a way to fully display a symbolic answer that is truncated in the command window?

62 views (last 30 days)
I am trying to display a symbolic answer in the command window. However, the entire symbolic expression cannot be displayed. If I scroll to the far right of the command window, I get at the end of my symbolic answer:
... Output truncated. Text exceeds maximum line length of 25,000 characters for Command Window display.
Is there anyway I can view my entire symbolic answer without using the command window?

Accepted Answer

Yu Jiang
Yu Jiang on 11 Aug 2014
Edited: Yu Jiang on 11 Aug 2014
Hi Ben
The diary command can be used to save the outputs displayed in the command window to a text file. You can find the whole symbolic expression in the text file.
I would do something along the lines of:
>> diary ('myVariable.txt');
>> var1 % your symbolic variable
>> diary off
This will save the output displayed in the command window to the 'myVariable.txt' file.
More details regarding function diary can be found here
-Yu
  4 Comments
wlat hamad
wlat hamad on 24 Jul 2020
hello sir:
i have the same proplem
i have tried to find determian of of 7 by 7 matrices with all symbolic entries but it showes
Output truncated. Text exceeds maximum line length of 25,000 characters for Command Window display.
so i have used your expression but still does not work. who can help me
with respect.
These are my typing
>> syms a12 b12 a13 b13 a14 b14 a15 b15 a16 b16 a23 b23 a24 b24 a25 b25 a26 b26 a34 b34 a35 b35 a36 b36 a45 b45 a46 b46 a56 b56 A B C D E F G a17 a27 a37 a47 a57 a67 b17 b27 b37 b47 b57 b67
>> X=[A a12 a13 a14 a15 a16 a17;b12 B a23 a24 a25 a26 a27;b13 b23 C a34 a35 a36 a37;b14 b24 b34 D a45 a46 a47;b15 b25 b35 b45 E a56 a57;b16 b26 b36 b46 b56 F a67;b17 b27 b37 b47 b57 b67 G]
S=det(X)
please help me

Sign in to comment.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!