Order of variables saved in FILENAME_forc_point*.mat-files

I want to use the saved forecasts across draws in the metropolis-subfolder in the FILENAME_forc_point*.mat-files.
I see it has three dimentions, the fisrt one is equal to number of variables declared and i want to know if it is in the same order of variables declared in .mod, that is,
if I declare in .mod:

var
z
x
y

Can I identify like this:

forecast_z = stock(1,:,:slight_smile:
forecast_x = stock(2,:,:slight_smile:
forecast_y = stock(3,:,:slight_smile: ?

You should verify this for your application. But as far as I can see, the ordering for the forecasts is in declaration order. Does this coincide with your observations?

I just verified and it is in the same order of variables declared in .mod.

I compared oo_.PointForecast.Mean with mean(squeeze(stock(i,:,:))) and they are same depending on variable.

Thanks a lot dear jpfeifer!!

Cheers

Aldo