필터 지우기
필터 지우기

I am having trouble computing this problem in matlab. How do I compute AA^-1 and print out the product where A is the 9x9 matrix?

조회 수: 1 (최근 30일)
A=[ai,j] , ai,j=1/i+j-1. So far I have i=4 and j=5
  댓글 수: 1
John D'Errico
John D'Errico 2017년 12월 5일
Please don't add answers, when all you want to do is make a comment. In my comment, I even said that was what you are asked to compute. Thus, it seems clear that the homework problem you have been assigned was to...
Compute the 9x9 hilbert matrix, thus the square matrix A(i,j), such that
A(i,j) = 1/(i+j-1)
Then compute the inverse of that matrix and multiply the two. Is the product an identity matrix, as theory suggests it should be? If not, then you might be asked to conjecture as to why it is not so. This might be the subject of further class discussions and/or homework assignments.

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

채택된 답변

Image Analyst
Image Analyst 2017년 12월 4일
Uh,
i=4
j=5
will not do
A=[ai,j]
ai,j=1/i+j-1
I don't know exactly what operation you were hoping for, but that code won't do it. Why don't you try in a for loop over j. Then you'll need to define what ai is. the second line of code only defines j to be (1/i) + j + 1, it does NOT define ai at all, and hence when you try to use it as a row vector in [ai,j] it will fail because ai was never defined.
Also, what exactly is "AA^-1" - can you describe in words what operation(s) this is?
  댓글 수: 3
John D'Errico
John D'Errico 2017년 12월 4일
편집: John D'Errico 2017년 12월 5일
I was surprised too. Surely a reflection of the pure quality of your answers, even when you were totally confused yourself.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by