I have a matrix which has dimension 5-by-4 whose elements are a function of 2 parameters beta1 and beta2, which takes on 50 values each.
The 5-by-4 matrix has the form
for i=1:5
factors(i,:)= [1,...
1-exp(-terms(i)/beta1) /(terms(i)/beta1), ...
(1-exp(-terms(i)/beta1))/(terms(i)/beta1)-exp(-terms(i)/beta1), ...
(1-exp(-terms(i)/beta2))/(terms(i)/beta2)-exp(-terms(i)/beta2)];
end
I want to create a larger matrix whose columns contain 50 of the 5-by-4 matrices with varying beta1 and fixed beta2. The rows contain 50 of the 5-by-4 matrices with varying beta2 and fixed beta1. So the dimensions of the larger matrix are 250-by-200.
Is there a function or loop which can help me with this? I've been stuck on this for a long time.