Output truncated. Text exceeds maximum line length of 25,000 characters for Command Window display.
Show older comments
hello
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 many expressions 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)
Answers (1)
Steven Lord
on 24 Jul 2020
0 votes
Since I'm guessing you don't really want to read through pages and pages of the result of that command, suppress the display by ending the line where you call det with a semicolon.
Alternately, substitute numeric values for some or all of the elements of that matrix before calling det rather than (as I suspect you're planning to do) substituting after.
16 Comments
wlat hamad
on 25 Jul 2020
Steven Lord
on 25 Jul 2020
What are you planning to do with those 5040 terms? Why do you need to read the extremely long output of that command?
wlat hamad
on 27 Jul 2020
Steven Lord
on 27 Jul 2020
When I compute the determinant of a generic 7-by-7 matrix:
>> syms x [7 7]
>> S = det(x);
>> strlength(char(S))
ans =
186477
Using the general rule of thumb of 3000 characters per page, that means this is a sixty-three page long expression.
If you must read this, write char(S) to a text file and open that file.
wlat hamad
on 27 Jul 2020
Steven Lord
on 27 Jul 2020
Make sure you're in a folder where you have write permissions then run this code:
syms x [7 7]
S = det(x);
writematrix(char(S), 'determinant.txt')
edit determinant.txt
wlat hamad
on 28 Jul 2020
Steven Lord
on 28 Jul 2020
Here is the text file.
Walter Roberson
on 28 Jul 2020
Output attached.
"Those terms tell us many things."
No they don't. They are uninformative. They are just a long string of additions that look like
G*a12*a35*a46*b12*b35*b46 + G*a12*a35*a46*b12*b36*b45 + G*a12*a36*a45*b12*b35*b46
wlat hamad
on 29 Jul 2020
wlat hamad
on 29 Jul 2020
Walter Roberson
on 29 Jul 2020
"A mathematician is a person who does mathematics" -- Raymond M. Smullyan I think it was.
I do not think I have an interest in the wonders of 7 x 7 determinants at this time.
wlat hamad
on 18 Apr 2022
Walter Roberson
on 18 Apr 2022
Thank you, but that is not a topic I have an interest in.
wlat hamad
on 18 Apr 2022
Steven Lord
on 18 Apr 2022
You can try using the subexpr function, but I'm not sure how much more readable (if at all) it's going to make this sixty-three page long expression.
Categories
Find more on Logical 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!