I have a matrix of 24x365 but just to explain what I want to do I am taking here an example matrix of 2x2.
n=3 (no of years)
The new matrix for each year must be formed in a way that for first year it should be simply C(1)=A but for second year the scalar b is multiplied with the C so C(2)=b*C(1).For third year it should be C(3)=b*C(2) and so on...
The answer matrix should be like
C(2)= [0.1 0.2
I have formed this code but I am not getting the desired results.
b = 0.1
The error appears as "Unable to perform assignment because the left and right sides have a different number of elements
Error in Untitled (line 11)
Can anyone please help me???