Hi All
I have got a plot in my aap designer window, and after plotting some 2D data on it, I want to read and save only some specific data from this plot and not whole of it how do I do that
app.UIAxes.Children(i).YData = somefunction(b, a, app.UIAxes.Children(i).YData);
or somehow I should have access to numerical values in YData
I am trying the following but not succeeding, I have more than one plot
for i=1:numel(app.UIAxes.Children)
app.fitY = [app.fitY; app.UIAxes.Children(i).YData];
app.fitt = [app.fitt; app.UIAxes.Children(i).XData];
assignin('base','appdatay',app.UIAxes.Children(i).XData)
assignin('base','appdatax',app.UIAxes.Children(i).YData)
app.UIAxes.Children(i).YData = app.UIAxes.Children(i).YData(1:redrate:numel(app.fitY));
end
8 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1162583
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1162583
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1162938
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1162938
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1162973
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1162973
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1163038
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1163038
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1163153
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1163153
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1165033
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1165033
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1165048
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1165048
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1166778
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/663593-how-to-read-every-i-data-in-the-uiaxes-plotted-data#comment_1166778
Sign in to comment.