Thanks. Works.
Asha
On Sep 11, 2012, at 7:22 AM, asha g wrote:
> I have a .mat file called error.mat
>
> It has many errors er1 er2 etc saved in it.
>
> I would like to retrieve er2 and plot it wrt to varying X values.
>
> How do I do it.
>
> Help appreciated.
>
> Thanks
>
> Asha
Assuming you have also saved "X" in "error.mat", that "X" and "er2" are numeric and of the same size, then you can do ...
x = load ("error.mat",
"X").X;
er2 = load ("error.mat", "er2").er2;
plot (x, er2)
Ben