Search code examples
scilab

Extract data from scilab plot


I am plotting data from an encoder with scilab.In order to use the plotted data i must extract it.I have been look with nothing usefull. Is there a known way for data extraction in scilab?


Solution

  • After looking at how the process is done in Matlab ,i could found out a certain analogy: Here is the code to extract data from scilab .You have first to select the plot as a current plot in the plot 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