thesisandcode logo

Thesis Coding Experts

Instant answers to all your coding queries by thesis coding experts
Home Question And Answer

Question Answer

Posted Time & Date | 11:04 AM - 10 May 2016

Ques :  I have some MATLAB figures for which I want to extract the data from the curve in the figure.

Answer :  This problem can be solved using a three step procedure:
  1. Open the figure file using command:
    % or
    Plot (1:10)
  2. Use the handle command for the current figure:
    h= gcf;
  3. Now, extract the values from data objects using command:
    objTypes = get(dataObjs, 'Type');
Was this answer helpful?
Share icon 0 icon 0