Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2009-02-12
年龄: 39
帖子: 12
声望力: 17 ![]() |
![]()
小弟初学MATLAB,遇到一个问题,劳烦各位大侠帮忙解决:
......... if n==1 p(1)=1; t(1)=cos(theta1); elseif n==2 p(2)=3.*cos(theta1); t(2)=3.*cos(2*theta1); else p1=(2.*n-1)./(n-1).*p(n-1).*cos(theta1); p2=n./(n-1).*p(n-2); p(n)=p1-p2; t1=n.*cos(theta1).*p(n); t2=(n+1).*p(n-1); t(n)=t1-t2; ......... 其中theta1定义:theta1=(0:180); 报错是那一行不匹配,请教各位大哥这个问题该如何解决呢?谢谢啦~ |
![]() |
![]() |