Please help! I am relatively new to Matlab and face the following issue: the outcome of my model is this variable \hat{x} that varies at the j,f level. The final identification equation which comes from my equilibrium condition look like this:
All variables apart from \hat{x}_j^f are known. The subscripts h and f denote home and foreign and they are running indices with a total of H countries (which is why I have matrices HxH which contain bilateral variables and Hx1 which contain only country-level variables). What I do not know is how to input in Matlab these matrices with my data at the different heterogeneity levels (j, h, f) such that I calculate my \hat{x}_j^f from the equation in the end.
Would anyone here be able to help me with some sample code to get me started? Thank you in advance to anyone who spends time on answering my query!