how can I color the part in red using scilab and xfpoly [closed]

雨燕双飞 提交于 2021-02-08 12:11:44

问题


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?


回答1:


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'))



来源:https://stackoverflow.com/questions/55514759/how-can-i-color-the-part-in-red-using-scilab-and-xfpoly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!