help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loading data from mat file


From: asha g
Subject: Re: loading data from mat file
Date: Wed, 12 Sep 2012 12:26:34 +0800 (SGT)


 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]