From: Carlito Brigante on 27 Mar 2010 04:56 Hi, how can I retrieve data from the plots & subplots in a toolbox. -wavelet toolbox specifically- The regular codes are not working; x = get(get(gca,’Children’),’XData’); y = get(get(gca,’Children’),’YData’); Basically, a figure created with the toolbox has multiple subplots and axes. I need to be able to extract all y datas, since I can read them with the cursor. But how? Alternatively, I wonder if there is anything that can be done with myFigStruct = load(myfigure.fig’,'-MAT’) ; This load into a struct variable. what's next? if I try; myFigStruct.hgS_070000.children.children.properties.YData I get a warning with; "??? Dot name reference on non-scalar structure." So, at this point I dont know what to do.
From: Wayne King on 27 Mar 2010 08:12 "Carlito Brigante" <carlittobrigante(a)gmail.com> wrote in message <hokh72$6mp$1(a)fred.mathworks.com>... > > > Hi, > > how can I retrieve data from the plots & subplots in a toolbox. -wavelet toolbox specifically- > > The regular codes are not working; > > x = get(get(gca,’Children’),’XData’); > y = get(get(gca,’Children’),’YData’); > > Basically, a figure created with the toolbox has multiple subplots and axes. I need to be able to extract all y datas, since I can read them with the cursor. But how? > > Alternatively, I wonder if there is anything that can be done with > > myFigStruct = load(myfigure.fig’,'-MAT’) ; > > This load into a struct variable. what's next? if I try; > > myFigStruct.hgS_070000.children.children.properties.YData > > I get a warning with; > "??? Dot name reference on non-scalar structure." > > So, at this point I dont know what to do. Hi Carlito, Are these plots being produced within the GUIs in the Wavelet Toolbox, or are you doing them from the command line? Can you give an example using one of the toolbox's built-in signals. Wayne
From: Carlito Brigante on 27 Mar 2010 13:32 "Wayne King" <wmkingty(a)gmail.com> wrote in message <hoksml$lf5$1(a)fred.mathworks.com>... > "Carlito Brigante" <carlittobrigante(a)gmail.com> wrote in message <hokh72$6mp$1(a)fred.mathworks.com>... > > > > > > Hi, > > > > how can I retrieve data from the plots & subplots in a toolbox. -wavelet toolbox specifically- > > > > The regular codes are not working; > > > > x = get(get(gca,’Children’),’XData’); > > y = get(get(gca,’Children’),’YData’); > > > > Basically, a figure created with the toolbox has multiple subplots and axes. I need to be able to extract all y datas, since I can read them with the cursor. But how? > > > > Alternatively, I wonder if there is anything that can be done with > > > > myFigStruct = load(myfigure.fig’,'-MAT’) ; > > > > This load into a struct variable. what's next? if I try; > > > > myFigStruct.hgS_070000.children.children.properties.YData > > > > I get a warning with; > > "??? Dot name reference on non-scalar structure." > > > > So, at this point I dont know what to do. > > Hi Carlito, > Are these plots being produced within the GUIs in the Wavelet Toolbox, or are you doing them from the command line? > > Can you give an example using one of the toolbox's built-in signals. > > Wayne Yes Wayne, I am directly using the GUI in the Wavelet toolbox. In toolbox, it gives us coefficients on various levels. I need to obtain these data. - I have sent a figure for this case as well. -
From: Carlito Brigante on 28 Mar 2010 08:34 "Carlito Brigante" <carlittobrigante(a)gmail.com> wrote in message > The regular codes are not working; > > x = get(get(gca,’Children’),’XData’); > y = get(get(gca,’Children’),’YData’); > > Basically, a figure created with the toolbox has multiple subplots and axes. I need to be able to extract all y datas, since I can read them with the cursor. But how? > > Alternatively, I wonder if there is anything that can be done with > > myFigStruct = load(myfigure.fig’,'-MAT’) ; > > This load into a struct variable. what's next? Normally, when I write a code and direct to make plots and subplots with the commands --like subplot(..); -- They are automatically loaded into workspace as arrays.. But, in other cases, where there exists a figure created with a toolbox GUI, I need to write a code to retrieve data. So, again any solutions to clarify this???
From: Carlito Brigante on 28 Mar 2010 12:57 As an example; http://img337.imageshack.us/img337/2868/howtoretrievedatafromfi.jpg I am able to read the data, But How can I create an array from this??
|
Pages: 1 Prev: IEEE ARTICLE Next: Sell Crystal rock tshirts women,laguna beach tshirts |