Rank Condition in 2 Country EZ Model

You would need to do this manually in Matlab. See e.g. How to plot multiple IRFs in Dynare