Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'matrix commands wont run' topicStudent Support Forum > General > Archives > "matrix commands wont run"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
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: ,

Subject (listing for 'matrix commands wont run')
Author Date Posted
matrix commands wont run mikecoon 09/11/06 7:00pm
Re: matrix commands wont run yeyuda ben-s... 09/12/06 00:36am
Re: matrix commands wont run mikecoon 09/12/06 10:00pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic