Help with VAR, SVAR model

#1
Hi,

I have to plot impulse response function for my research paper and I have never studied vector autoregressive models. So I am hoping someone could help. Here is what I have to do.

I have time series on 5 variables, 2 of them are endogenous (call them A and B) and three are exogenous (call them C, D, and E). I am trying to see the effect of these exogenous variables on the endogenous ones and my professor has asked me to plot the Impulse Response Functions of A and B when C, D, and E change. So can anyone please explain to me how that can be done? (I use stata or/and Matlab)

thank you so much