How can I create it?
조회 수: 4 (최근 30일)
이전 댓글 표시
How can I create a 5x5 matrix with the following criterion: aij = 2cos(0.4(i-j)π)
댓글 수: 0
채택된 답변
Star Strider
2016년 2월 12일
A bit more efficiently, using meshgrid:
[i,j] = meshgrid(1:5);
a = 2*cos(0.4*(i-j)*pi);
댓글 수: 2
Star Strider
2016년 2월 12일
My pleasure!
The meshgrid function can make a number of matrix calculations easier.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!