Calculate the Kronecker product K  A B . Use nested loop operation to calculate each element of K directly and output the results with fprintf() function for a random

조회 수: 1 (최근 30일)
Calculate the Kronecker product K  A B . Use nested loop operation to calculate each element of K directly and output the results with fprintf() function for a random 2 by 2 matrice and 3 by 4 matrice.
  댓글 수: 1
Image Analyst
Image Analyst 2014년 11월 23일
You forgot to post your attempt at coding it up. Even if it doesn't work, at least post something. http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup. Hint:
for col = 1 : columns
for row = 1 : rows
theProduct = .....
fprintf(..............
end
end

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by