Matrix operations
显示 更早的评论
So i am having trouble with one of my homework problems..
i am given matrices
A=[1,21,3;5,7,9;11,12,32];
B=[2,3,4;5,8,11;8,9,22];
C=[2,3,4;7,9,11];
and need to perform the following operations:
inv(A)
A*inv(A)
A*A'
A.*B
A.*C %need help here%
%multiplication%
A=[1,21,3;5,7,9;11,12,32];
B=[2,3,4;5,8,11;8,9,22];
C=[2,3,4;7,9,11];
A*B;
B*A;
A*C;%and here%
C*A%and here%
but for the marked locations matlab gives me an error message.. what can i do differently?
1 个评论
the cyclist
2011-9-21
It would be really helpful if you could use the "code" button to format your question. It's really difficult to read.
采纳的回答
更多回答(1 个)
Walter Roberson
2011-9-21
0 个投票
I would expect errors for A.*C and A*C, but I would not expect an error for C*A: I would expect a 2 x 3 matrix as the result.
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!