Symbolic Matrix has extra blank row

1 view (last 30 days)
Carol Hurwitz
Carol Hurwitz on 4 Sep 2018
Commented: Walter Roberson on 5 Sep 2018
When I do this:
>> syms b
>> C = [1 b; b 2]
C =
[1 b]
[ ]
[b 2]
The online example doesn't show this but I always get a blank row. What am I doing wrong? With all numbers, I get an ordinary matrix.

Answers (2)

madhan ravi
madhan ravi on 4 Sep 2018
Edited: madhan ravi on 4 Sep 2018
OR TRY:
C = str2sym('[1 b; b 2]')
Edited after Sir walter‘s comment.
  10 Comments
madhan ravi
madhan ravi on 5 Sep 2018
If you find our (me and sir Walter‘s) answer useful please do accept my answer.

Sign in to comment.


Carol Hurwitz
Carol Hurwitz on 4 Sep 2018
I still get the same output, using your code. Is there a package I need to install?
  2 Comments
Walter Roberson
Walter Roberson on 5 Sep 2018
Is it possible that you have Maple installed on the system that has the problem?

Sign in to comment.

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!