MATLAB用streamslice函数画向量场图时出现了问题程序如下[x1,x2] = meshgrid(linspace(a1,a2));y1 = 0.5*(-(17.76*x - 103.79*x^2 + 229.62*x^3 - 226.31*x^4 + 83.72*x^5)+x2);y2 = 0.2*(-x1-1.5*x2+1.2);streamslice(x1,x2,y1,y2);当y1,y2是简
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 16:50:04
MATLAB用streamslice函数画向量场图时出现了问题程序如下[x1,x2] = meshgrid(linspace(a1,a2));y1 = 0.5*(-(17.76*x - 103.79*x^2 + 229.62*x^3 - 226.31*x^4 + 83.72*x^5)+x2);y2 = 0.2*(-x1-1.5*x2+1.2);streamslice(x1,x2,y1,y2);当y1,y2是简
MATLAB用streamslice函数画向量场图时出现了问题
程序如下
[x1,x2] = meshgrid(linspace(a1,a2));
y1 = 0.5*(-(17.76*x - 103.79*x^2 + 229.62*x^3 - 226.31*x^4 + 83.72*x^5)+x2);
y2 = 0.2*(-x1-1.5*x2+1.2);
streamslice(x1,x2,y1,y2);
当y1,y2是简单函数时候可以画出正确的向量场,但是上述y1,y2画的图不对了.
上图是错误的向量场,实际正确的向量场是下面的
MATLAB用streamslice函数画向量场图时出现了问题程序如下[x1,x2] = meshgrid(linspace(a1,a2));y1 = 0.5*(-(17.76*x - 103.79*x^2 + 229.62*x^3 - 226.31*x^4 + 83.72*x^5)+x2);y2 = 0.2*(-x1-1.5*x2+1.2);streamslice(x1,x2,y1,y2);当y1,y2是简
a1 = -0.3;a2 = 1.6;
[x1,x2] = meshgrid(linspace(a1,a2));
y1 = 0.5*(-(17.76*x1 - 103.79*x1.^2 + 229.62*x1.^3 - 226.31*x1.^4 + 83.72*x1.^5)+x2);
y2 = 0.2*(-x1-1.5*x2+1.2);
streamslice(x1,x2,y1,y2);