From: Jon Huang on 4 Apr 2010 11:36 "Wayne King" <wmkingty(a)gmail.com> wrote in message <hin7g8$525$1(a)fred.mathworks.com>... > Dave_Poreh <d.poreh(a)gmail.com> wrote in message <8f193beb-2b09-4a54-8d6e-10d4c5d9884a(a)s31g2000yqs.googlegroups.com>... > > Hi folks > > I plot some data and I save in *.fig format. I need to retrieve my > > data from this plots. I mean now I have just this FIG’s and I need to > > access my data in *.dat (or any other format). Could anyone help me > > over this issue? > > Any help highly would be appreciated. > > Dave > > Hi Dave, I gave this advice in another thread: > > 1.) Open the .fig file in Matlab > 2.) Click edit plot (the white arrow on the toolbar) > 3.) Click on one of the data series (you should see squares appear along the vector) > > YData1 = get(gco,'YData'); > XData1 = get(gco,'XData'); > % click on 2nd series (again squares should appear) > YData2 = get(gco,'YData'); > XData2 = get(gco,'XData'); > % If the X-axis data are the same length, then obviously you just need > % that data once. > % Plot as you want, you'll need to relabel axes, grid, etc. > plot(XData2,YData2); > hold on; > plot(XData1,YData1); > > Hope that helps, > Wayne Does this work for polar plot as well? If not, how should I modify? Thank you!
From: us on 4 Apr 2010 15:08 "Jon Huang" > Does this work for polar plot as well? > If not, how should I modify? > Thank you! well... here comes the revelation... the easiest thing on earth is to ...simply... TRY it... us
From: Jon Huang on 4 Apr 2010 15:28 "us " <us(a)neurol.unizh.ch> wrote in message <hpao2l$hnq$1(a)fred.mathworks.com>... > "Jon Huang" > > Does this work for polar plot as well? > > If not, how should I modify? > > Thank you! > > well... here comes the revelation... > the easiest thing on earth is to ...simply... TRY it... > > us I did try and it didn't work. I believe it is the "Type" issue, or more specifically, I think polarplot does not use "XData" and "YData". But I have no idea what type/properties of polarplot are saved in fig file. F1 doesn't tell me the answer.
From: Walter Roberson on 4 Apr 2010 23:35 On 10-04-04 2:28 PM, Jon Huang wrote: > I did try and it didn't work. > I believe it is the "Type" issue, or more specifically, I think > polarplot does not use "XData" and "YData". But I have no idea what > type/properties of polarplot are saved in fig file. F1 doesn't tell me > the answer. polar plots do not have any special type in fig files. They are regular cartesian plots which have two axes that have hidden handles, and they have a bunch of text labels to mark the radii and the angles, and they have a patch to define the circle background. The handle that is returned by polar() is the handle of the main plot; I've forgotten at this time of night whether it is the main axis or the main lineseries (lineseries I _think_), either way it is a matter of a few second to find the XData and Ydata. However, the XData and YData will be in cartesian coordinates. I seem to recall that newer versions push everything down a level into a hggroup, which lends more flexibility in moving the whole ensemble and in adding datatips that are polar based. Anyhow, if you look at some of my old postings, keyword polar, then I describe the layering in some of them, at least as it existed at that time.
|
Pages: 1 Prev: Detect noisy points in curve Next: need to interface PLC with Matlab |