Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
reading figures

Subject: reading figures

From: Snow White

Date: 27 Aug, 2009 10:30:21

Message: 1 of 5

Hello,

I have stored some date (images) as *.fig and it takes very long to get those results now i want to take the log of the *.fig. Is there any way i can do it other than executing the code all over again?

Regards

Subject: reading figures

From: Steven Lord

Date: 27 Aug, 2009 13:42:06

Message: 2 of 5


"Snow White" <gulesaman@gmail.com> wrote in message
news:h75n7s$at$1@fred.mathworks.com...
> Hello,
>
> I have stored some date (images) as *.fig and it takes very long to get
> those results now i want to take the log of the *.fig. Is there any way i
> can do it other than executing the code all over again?

Look at this Technical Solution document and the one linked to it in the
"Related Solutions" section:

http://www.mathworks.com/support/solutions/en/data/1-A6PBV2/?solution=1-A6PBV2

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Subject: reading figures

From: Snow White

Date: 27 Aug, 2009 14:15:19

Message: 3 of 5

Thank you.

I tried the following since i have an image stored as a *.fig

open('E:\Apple unpol light source 25th august 2009\polup.fig');
h=findobj;
 x=get(h,'Xdata')
y=get(h,'Ydata')

 and got this error:
??? There is no 'Xdata' property in the 'root' class.


regards,

"Steven Lord" <slord@mathworks.com> wrote in message <h762f1$drb$1@fred.mathworks.com>...
>
> "Snow White" <gulesaman@gmail.com> wrote in message
> news:h75n7s$at$1@fred.mathworks.com...
> > Hello,
> >
> > I have stored some date (images) as *.fig and it takes very long to get
> > those results now i want to take the log of the *.fig. Is there any way i
> > can do it other than executing the code all over again?
>
> Look at this Technical Solution document and the one linked to it in the
> "Related Solutions" section:
>
> http://www.mathworks.com/support/solutions/en/data/1-A6PBV2/?solution=1-A6PBV2
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
>

Subject: reading figures

From: Steven Lord

Date: 27 Aug, 2009 14:20:39

Message: 4 of 5


"Snow White" <gulesaman@gmail.com> wrote in message
news:h764dn$o8a$1@fred.mathworks.com...
> Thank you.
>
> I tried the following since i have an image stored as a *.fig
>
> open('E:\Apple unpol light source 25th august 2009\polup.fig');
> h=findobj;
> x=get(h,'Xdata')
> y=get(h,'Ydata')
>
> and got this error:
> ??? There is no 'Xdata' property in the 'root' class.

Reread the second and third steps in the document to which I linked. You're
trying to mash those two steps together -- don't, it won't work.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Subject: reading figures

From: Snow White

Date: 27 Aug, 2009 14:46:03

Message: 5 of 5

i tried the following as it is:
line = findall(h, 'Type', 'Line');
>> x_line1 = get(ln(1), 'xdata');
y_line2 = get(ln(1), 'ydata');

error
??? There is no 'xdata' property in the 'figure' class.

although i did not want to use line since its an image and not a curve but as far as i get it i think that by line it means the data in the first row and column

regards


"Steven Lord" <slord@mathworks.com> wrote in message <h764na$es4$1@fred.mathworks.com>...
>
> "Snow White" <gulesaman@gmail.com> wrote in message
> news:h764dn$o8a$1@fred.mathworks.com...
> > Thank you.
> >
> > I tried the following since i have an image stored as a *.fig
> >
> > open('E:\Apple unpol light source 25th august 2009\polup.fig');
> > h=findobj;
> > x=get(h,'Xdata')
> > y=get(h,'Ydata')
> >
> > and got this error:
> > ??? There is no 'Xdata' property in the 'root' class.
>
> Reread the second and third steps in the document to which I linked. You're
> trying to mash those two steps together -- don't, it won't work.
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
>

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us