| Author |
Comment/Response |
yeyuda ben-shimol
|
09/12/06 00:36am
Hi,
The MatrixForm head prevents the operation of functions that are looking for the head List of the condition MatrixQ to be true.
if
a = MatrixForm[{{1, 1, 1}, {0, 1, 1}, {0, 0, 1}}]
then
FullForm[a] returns
FullForm[MatrixForm[{{1, 1, 1}, {0, 1, 1},
{0, 0, 1}}]]
It is better that you will prevent the assignment of the head MatrixForm, e.g.
MatrixForm[a = {{1, 1, 1}, {0, 1, 1}, {0, 0, 1}}]
This way a is assigned a matrix while the output displays a MatrixForm as required
good luck
yehuda
URL: , |
|