MATLAB Answers


This question is closed and may reopen in the future if edited.


A matlab code for multiplication of matrices....URGENT

Asked by sneha
on 27 Dec 2012

Can anyone give me a code for writing two N x N matrix A and B and multiplying them to be stored as C.the value of every element in A is given by a function a(i,j,N) and B is the transpose of A.

1 Answer

Answer by Lalit Patil on 27 Dec 2012

 N = 3
 A = rand(N,N)
 B = transpose(A)
 C = A*B


Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today