Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Having problem with matrix computations.
I want "Io" to be 2 dimensional matrix
the rows of "Io" are the days "d" which calculate "Deltad" and "eo" so both of these variables are a 12X1 row vector.
the columns of "Io" are the hour angles (w1 and w2) which are 1X14 column.
So you pick one day from the iterate through the hours to calculate the columns for that day. then you move to the next day and do the same.
so in the end you have a 12x14 "Io" matrix
File is attached
Ziyad Saeed wrote:
Having problem with matrix computations.
I want "Io" to be 2 dimensional matrix
the rows of "Io" are the days "d" which calculate "Deltad" and "eo" so both of these variables are a 12X1 row vector.
the columns of "Io" are the hour angles (w1 and w2) which are 1X14 column.
So you pick one day from the iterate through the hours to calculate the columns for that day. then you move to the next day and do the same.
so in the end you have a 12x14 "Io" matrix
File is attached
Do you mean something like the attached?
Stuart
Thankyou Stuart.
clarity versus speed. I'll go for clarity right now till i see the file is getting slower and slower as it increases.
Once i'm done i'll used the optimized for loop.