Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2008-04-21
年龄: 38
帖子: 7
声望力: 0 ![]() |
![]()
a=sqrt(123.6/239);
r=1.0184; x=[0.93174:4.34471]; w=1/6/(1/a)^(2/3)*(6*x^(5/2)*(1/a)^(5/3)/(x^3/a^2)^(1/2)*atan((x^3/a^2)^(1/2))-... 3/2*x^(5/2)*(1/a)^(5/3)/(x^3/a^2)^(5/6)*3^(1/2)*log(1-3^(1/2)*(x^3/a^2)^(1/6)+... (x^3/a^2)^(1/3))-3*x^(5/2)*(1/a)^(5/3)/(x^3/a^2)^(5/6)*atan(1/2*(x^3/a^2)^(1/6)/... (1-1/2*3^(1/2)*(x^3/a^2)^(1/6)))-6*x^(5/2)*(1/a)^(5/3)/(x^3/a^2)^(5/6)*... atan((x^3/a^2)^(1/6))+3/2*x^(5/2)*(1/a)^(5/3)/(x^3/a^2)^(5/6)*3^(1/2)*log(1+3^(1/2)*(x^3/a^2)^(1/6)+... (x^3/a^2)^(1/3))-3*x^(5/2)*(1/a)^(5/3)/(x^3/a^2)^(5/6)*atan(1/2*(x^3/a^2)^(1/6)/(1+1/2*3^(1/2)*(x^3/a^2)^(1/6)))); h=(2/5*x^(5/2)-x)/(3*a.^3); f=(2/3*x^(3/2)-x)/a; k=x.*atan(1/a); y=1./(1+a.^2)*(x/r-4*a^3/r^2.*(h-f+w-k)) ; z=2*a^3*r*((x^1.5-1)/(3*a^3)-(x^0.5-1)/a+atan(x^0.5/a)-atan(1./a)); subplot(2,2,1); plot(x,y) subplot(2,2,2); plot(x,z) subplot(2,2,3); plot(y,z) 主要是想利用x这个参数,来画y与z的关系图,但是不知道哪里错了。
__________________
where there is sunshine, there is hope and chance! |
![]() |
![]() |
![]() |
#2 |
初级会员
注册日期: 2008-04-21
年龄: 38
帖子: 7
声望力: 0 ![]() |
![]()
它总是出现??? Error using ==> mpower
atrix must be square.是什么意思啊? 在这里万分感谢咯!
__________________
where there is sunshine, there is hope and chance! |
![]() |
![]() |
![]() |
#3 |
普通会员
注册日期: 2008-04-28
年龄: 35
帖子: 63
声望力: 19 ![]() |
![]()
mpower的距阵必须是方阵
|
![]() |
![]() |
![]() |
#4 |
初级会员
注册日期: 2008-04-21
年龄: 38
帖子: 7
声望力: 0 ![]() |
![]()
我也知道要是矩阵,但是不知道要怎么改,可以教我吗,谢谢你了!
__________________
where there is sunshine, there is hope and chance! |
![]() |
![]() |
![]() |
#5 |
普通会员
注册日期: 2008-04-28
年龄: 35
帖子: 63
声望力: 19 ![]() |
![]()
输出的应该是x y z的关系,不是仅仅是y z了
|
![]() |
![]() |
![]() |
#6 |
初级会员
注册日期: 2008-04-21
年龄: 38
帖子: 7
声望力: 0 ![]() |
![]()
但是我还是有点想不通,比如:
t=[0 ![]() x=sin(t); y=cos(t); plot(x,y) 却能够画出关于x,y的图像,为什么那个就不能呢?
__________________
where there is sunshine, there is hope and chance! |
![]() |
![]() |
![]() |
#7 |
普通会员
注册日期: 2008-04-28
年龄: 35
帖子: 63
声望力: 19 ![]() |
![]()
用plot3(x,y,z)输出
|
![]() |
![]() |