Can anyone help?
조회 수: 1 (최근 30일)
이전 댓글 표시
Don't know how to generate the A matrix, can someone help and explain this?
Thank you!
댓글 수: 2
James Tursa
2021년 3월 17일
What have you done so far? What specific problems are you having with your code? You might want to look at the .^ operator for this ... it will be easy to generate A in one simple expression.
답변 (1개)
James Tursa
2021년 3월 17일
Hint: Look at the results of this operation, and I think you can figure it out from there:
x = [2;3;4]; % column vector
y = 0:5; % row vector
x .^ y
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!