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.
|
|
0
|
|
|
|
Reply
|
Carlito
|
3/27/2010 8:56:02 AM |
|
"Carlito Brigante" <carlittobrigante@gmail.com> wrote in message <hokh72$6mp$1@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
|
|
0
|
|
|
|
Reply
|
Wayne
|
3/27/2010 12:12:05 PM
|
|
"Wayne King" <wmkingty@gmail.com> wrote in message <hoksml$lf5$1@fred.mathworks.com>...
> "Carlito Brigante" <carlittobrigante@gmail.com> wrote in message <hokh72$6mp$1@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. -
|
|
0
|
|
|
|
Reply
|
Carlito
|
3/27/2010 5:32:26 PM
|
|
"Carlito Brigante" <carlittobrigante@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???
|
|
0
|
|
|
|
Reply
|
Carlito
|
3/28/2010 12:34:03 PM
|
|
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??
|
|
0
|
|
|
|
Reply
|
Carlito
|
3/28/2010 4:57:02 PM
|
|
|
4 Replies
349 Views
(page loaded in 0.058 seconds)
|