Warning: include(connect.php): failed to open stream: No such file or directory in /home/thesisandcode/public_html/include/header.php on line 13

Warning: include(connect.php): failed to open stream: No such file or directory in /home/thesisandcode/public_html/include/header.php on line 13

Warning: include(): Failed opening 'connect.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/thesisandcode/public_html/include/header.php on line 13

Warning: include(class/ratings.php): failed to open stream: No such file or directory in /home/thesisandcode/public_html/include/header.php on line 14

Warning: include(class/ratings.php): failed to open stream: No such file or directory in /home/thesisandcode/public_html/include/header.php on line 14

Warning: include(): Failed opening 'class/ratings.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/thesisandcode/public_html/include/header.php on line 14
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:
    open(‘example.fig’);
    % or
    Figure;
    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