![]() |
求助~~~高手帮下忙,看看程序错在哪里?谢啦
H=input('pleasse input the value of H:');
M=input('pleasse input the value of M:'); disp(H); disp(M); if H>0.5 && H<1 Q=0 else if H>0 && H<0.5 U=0; for u=1:Inf U=U+u^(H-1.5) end; Q=(0.5-H)*U; end; end; disp(Q); G(u:1)=randn(M-1); for u=(t-M):(t-1) T(1,:)=(t-u)^(H-1.5); end; G(t)=randn(1); f=(H-0.5)*(T*G(u))+Q*G(t); plot(t,f,'b*'); grid on; |
回复: 求助~~~高手帮下忙,看看程序错在哪里?谢啦
[QUOTE=小溪1986;25054]H=input('pleasse input the value of H:');
M=input('pleasse input the value of M:'); disp(H); disp(M); if H>0.5 && H<1 Q=0 else...[/QUOTE] 不明白这个程序是干什么?u=1:inf 是一个无限循环,如果进入就麻烦了!你最好先给Q赋值,否则如果Q不满足if else if end的条件,那Q就无值可取。 |
回复: 求助~~~高手帮下忙,看看程序错在哪里?谢啦
把错误信息帖出来就知道了。
好多坛友或游客都不知贴出错误信息,why? |
回复: 求助~~~高手帮下忙,看看程序错在哪里?谢啦
最好说明一下你想干什么
|
回复: 求助~~~高手帮下忙,看看程序错在哪里?谢啦
谢谢大家~~我自己已经调试好了
|
所有时间均为北京时间。现在的时间是 12:23。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.