把test圖檔中線上的數值取出成為matrix


open test.fig;

% Get the handle of line on axis.
hline = get( gca, 'Children' );%取得handle gca之屬性Children(子點)的值
% Get the data.
x = get( hline, 'XData' );
y = get( hline, 'YData' );

 


reference

洪維恩, 著 :    Matlab 7程式設計 / 洪維恩著      台北市 : 旗標, 2005[民94].[ISBN 9574422607 (平裝) 新台幣680元] pp17-4~17-9

 

arrow
arrow

    kodakku 發表在 痞客邦 留言(0) 人氣()