如何使用scilab和xfpoly将零件涂成红色 [英] how can I color the part in red using scilab and xfpoly

查看:75
本文介绍了如何使用scilab和xfpoly将零件涂成红色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用scilab和xfpoly将零件涂成红色.在两个边界之间的积分之后,有没有一种方法可以对计算的表面着色?

How can I color the part in red using scilab and xfpoly. Is there a way to color the calculated surface just after the integral between two bounds?

推荐答案

我想像上一篇文章一样,您的函数是用 g(x)调用的.以下应该做您想做的事:

I suppose that your function is called with g(x) as in your previous post. The following should do what you want:

x=linspace(5,50,200);
plot(x,g(x))
deff('y=f(x,y0)','y=g(x)-y0')
x1 = fsolve(45,list(f,40))
x2 = fsolve(x1,list(f,30))
xv = linspace(x1,x2,1000);
yv = [40 g(xv) 30];
xv = [45 xv 45];
xfpoly(xv,yv,color('red'))

这篇关于如何使用scilab和xfpoly将零件涂成红色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆