MATLAB: I need to get the data from this figure dataplot Hi there like said in the title, i want to extract the data from this figure plz Best Answer The plot appears to have only Bar objects. Try this: F = openfig('untitled.fig');Ax = gca;hBar = findobj(Ax.Children, 'Type','Bar');X = hBar.XData;Y = hBar.YData;Finding that took a bit of exploring. Related SolutionsMATLAB: How to get data from figures produced by errorbars %example dataX = 0:pi/10:pi;Y = sin(X);E = std(Y)*ones(size(X));errorbar(X,Y,E) %get dataxData = get(get(gca, 'Children'), 'XData');yData = get(get(gca, 'Children'), 'YData');uData = get(get(gca, 'Children'), 'UData');%lets see if its equalisequal(E',uData) %it is equal, same content MATLAB: Where are the data Try this: F = openfig('untitled.fig');ax = gca;lines = findobj(ax, 'Type','Line');for k = 1:numel(lines) x{k,:} = lines(k).XData; y{k,:} = lines(k).YData;endThe x- and y-data for each line are in their appropriate cell arrays. Related QuestionExtracting data series from *.fig fileCombine two MATLAB figures with two y axesHelp with centralling text values above a Bar Chart with side by side dataI have five figure in .Fig extension which i am creating after plotting 5 rows from a dataset. Now i want to Join these 5 figure into one figure in vertical allignemntHow to reposition the colorbar to not overlap the x-axis label
Best Answer