从 scilab 图中提取数据

Extract data from scilab plot

我正在用 scilab.In 绘制来自编码器的数据,以便使用我必须提取的绘制数据 it.I 看起来没有任何用处。 在 scilab 中是否有已知的数据提取方法?

在查看了这个过程在 Matlab 中是如何完成的之后,我发现了一个类比: 这是从 scilab 中提取数据的代码。您首先要 select 该图作为图中的当前图 window:

  e2=gca()//extract the current plot handler
  b2=e2.children//i don t know what is this is really
  b2.data(:,2)// data is a matrix containing X and Y ,in my case i want to extract Y

以下对我有用:

只是 select 当前绘图并从命令提示符获取它的句柄:

h = gca();

然后检索多边形句柄:

p = h.children;

最终得到图句柄如下:

c = p.children;

打印绘图数据:

c.data