[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loading data from mat file
From: |
Ben Abbott |
Subject: |
Re: loading data from mat file |
Date: |
Tue, 11 Sep 2012 07:46:37 -0400 |
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