Extract value based on degree and order of spherical harmonic in triangular (upper and lower) matrix

2 views (last 30 days)
Hello,
I have a matrix A [61x61] where the upper triangular matrix consist of sine coefficient of spherical harmonic for degree (column) and order (row) up to 60. Meanwhile the lower triangular matrix is the value of cosine coefficient for the same number of degree (row) and order (column).
How do I extract the value based on certain degree and order of sine or cosine coefficient?
Thank you.
  2 Comments
KALYAN ACHARJYA
KALYAN ACHARJYA on 2 Dec 2020
"How do I extract the value based on certain degree and order of sine or cosine coefficient?"
The "A" matrix having 61x61
For sin Coeffcients, row must be less than columns
A(rows_number,columns); %Here rows_number<columns
For cosine Coeffcients, row must be greater than columns
A(rows_number,columns); %Here rows_number>columns
Hope I undestood the question correctly. If not, can you clarify more?
Adilla Zulkifli
Adilla Zulkifli on 2 Dec 2020
Edited: Adilla Zulkifli on 2 Dec 2020
For sine coefficients, the value for the upper triangular matrix starts from row 1-60, column 2-61. Meanwhile for cosine coefficients at lower triangular matrix the value starts from row 1-61, column 1-61. This is because for sine coefficient, the 0 degree and order has 0 value. Did you get the picture of the matrix form for sine and cosine coefficients?

Sign in to comment.

Answers (0)

Categories

Find more on Phased Array Design and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!