Gistlib Logo

gistlib

how to calculate product of a matrix and a transpose of another matrix in matlab

main.m
A = rand(3, 2);  % 3x2 matrix
B = rand(2, 3);  % 2x3 matrix

product = A * B';  % Calculating product of A and transpose of B
126 chars
5 lines

similar matlab code snippets

given the matrix a=magic(3), compute its qr factorization and solve the linear system qx=b, with b=[1,2,3]^t. the solution is, approximately: in matlab
a= (0, 0, 1, 0, · · · , 0)^t, y = (y1, y2, · · · , y21),aa = y. calculate relative error in a if y(5) = y(5) + 0.01 in matlab
null space of a matrix in matlab
find eigenvectors of a matrix in matlab
gaussian elimination in matlab
boost matrix in matlab
rref of an augmented matrix in matlab
how to calculate the sum of a matrix in matlab
how to calculate the inverse of a matrix in matlab
how to calculate the variance of a matrix in matlab

related categories

matlab
linear-algebra
matrix

gistlibby LogSnag