-
1 Comment
if size(x,2)==size(y,1)
z=x*y
else
z = "The inner dimensions are 3 and 2. Matrix multiplication is not possible"
end
Suggested Problems
Find all elements less than 0 or greater than 10 and replace them with NaN
14174 Solvers
Basics: 'Find the eigenvalues of given matrix
356 Solvers
516 Solvers
260 Solvers
349 Solvers
More from this Author13
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!