Ir para conteúdo
Fórum Script Brasil

Víctor Benfica

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre Víctor Benfica

Víctor Benfica's Achievements

0

Reputação

  1. Com licença, sou novo e não sei se alguém pode me ajudar. Estou tentando plotar duas linhas de valores simulados em um mesmo gráfico com o seguinte código dynare teste_vitor.mod load('teste_vitor_results.mat', 'oo_') irf1=oo_.irfs; save irf1 load irf1 dynare teste_vitor1.mod noclearall load('teste_vitor1_results.mat', 'oo_') irf2=oo_.irfs; save irf2 load irf2 ending_cell={'_e_G'} ; for ii=1:length(ending_cell) HOR=1:1:40; var={'Y', 'U', 'PI', 'RB', 'B', 'IP', 'IG', 'C', 'CR', 'CNR', 'T', 'TRANS', 'KP', 'KG', 'R', 'W', 'LR', 'LNR', 'L'}; figure for jj=1:length(var) subplot(1,2,jj) eval(['irf1.' var{1,jj},ending_cell{1,ii}]); eval(['irf2.' var{1,jj},ending_cell{1,ii}]); hold on plot(HOR,[eval(['irf1.' var{1,jj},ending_cell{1,ii}])],'LineWidth',1,'-k',HOR,[eval(['irf2.' var{1,jj},ending_cell{1,ii}])],'LineWidth',1,'--r') title([var{1,jj}] ) end end Mas o software retorna uma mensagem : Undefined variable "irfff" or class "irfff.Y_e_G". Alguém saberia me dizer como arrumar isso? sou leigo e estou me aventurando no matlab agora. Obrigado
×
×
  • Criar Novo...