Date: Aug 15, 2012 11:00 PM
Author: Antonio Valentine
Subject: how to access the same variables from 2 files that has similar name saved in different folder.

I have saved file 
folder "A"
a1.mat
a2.mat
folder "B"
a1.mat
a2.mat

however all the variables in a1,a2 from two folders are the same.

If I want to call just only a variable for plot that has the same name, what would be the command?

For example,

a1.mat has variable result1
a2.mat has variable result1

but two results has achieved from different settings. I want to plot them versus each different setting.