How to save changed data in the Curve Fitting Toolbox?

x=[1:.1:10 1000];
y=[1:.1:10 2000];

After reading the following values ​​in the Curve Fitting Toolbox,
 I deleted (1000,2000) as an outlier.

After removing the ejection point from the Curve Fitting Toolbox (manually using the mouse) in MATLAB, I want to save the changed x and y values ​​in the command window.
I tried to save in the workspace, but this saves a structure called "workspace" and "goodness", but does not remove redundant values ​​from the x and y variables in the command window.

+4
source share
2 answers

, , .

, :

  • File, Print to Figure. .
  • , Del, .
  • ( ) ( ). , .
  • (gco). ,

    x = get(gco, 'XData');
    y = get(gco, 'YData');
    

    x y.

+1

MATLAB ( 2013b),

lin = get(gca, 'Children');
x = get(findall(lin, 'displayName', 'YourName'), 'xData');
y = get(findall(lin, 'displayName', 'YourName'), 'yData');
0

Source: https://habr.com/ru/post/1605701/


All Articles