开发者

What is the best way to capture output form scilab into a publishable format?

开发者 https://www.devze.com 2023-01-02 22:12 出处:网络
I am using scilab to do some simple simulation. The outcome will a number of plot and graph. What is the easiest way to capture these outputs and publish them into a pdf or ps file? 开发者_JAVA技巧

I am using scilab to do some simple simulation. The outcome will a number of plot and graph. What is the easiest way to capture these outputs and publish them into a pdf or ps file? 开发者_JAVA技巧

Hopefully it is simple to do that I can include the boilerplate code into my scilab script itself?


You can use xs2ps, xs2eps or xs2pdf. For example:

scf(0);
x=0:0.01:10;
for i=1:5
  y=sin(i*x);
  plot2d(x,y);
  filename=sprintf('d:\foo_%d.ps',i);
  xs2ps(0,filename);
  clf();
end
0

精彩评论

暂无评论...
验证码 换一张
取 消