晚秋2010 发表于 2010-8-16 13:23

关于长江水质预测与评价模型的

请各位大虾帮我看一下这个程序问题出在哪?还有怎么解决?我运行后总是出现出错的信息。




Nihe=zeros(6,2);
Weilai=zeros(6,20);
for j=1:6;
  %figure(j)
grid on
hold on
subplot(3,2,j)
%figure(j)
hold on
load f:\data_a4.txt
Data_ok=data_a4;
Data_ok=Data_ok(:,3:2:13);
%枯水期
plot(Data_ok(1:9:90,j),'-*b')
plot(Data_ok(2:9:90,j),':*b')
plot(Data_ok(3:9:90,j),'-.*b')
%legend('枯水期全流域','枯水期干流','枯水期支流',)
%丰水期plot(Data_ok(3:9:90,j),'-.*b')
plot(Data_ok(4:9:90,j),'or')
plot(Data_ok(5:9:90,j),'r')
plot(Data_ok(6:9:90,j),'-.or')
%legend('丰水期全流域','丰水期干流','丰水期支流',)
%水文年
plot(Data_ok(7:9:90,j),'-xg')
plot(Data_ok(8:9:90,j),':xg')
plot(Data_ok(9:9:90,j),'-.xg')
switch j
    case 1
        xlabel('I类水')
    case 2
        xlabel('II类水')
    case 3
        xlabel('III类水')
    case 4
        xlabel('IV类水')
    case 5
         xlabel('V类水')
    case 6
          xlabel('VI类水')
end

if j>=3;
x=1:10;
X=;
y=Data_ok(7:9:90,j);
=regress(y,X,0.05);
t=1:20;
Nihe(j,:)=b;
yt=b(1)+b(2).*t';
WeiLai(j,:)=yt(1:20);
plot(t,yt,'LineWidth',2,'Color','k')
end
if j==1;
    x=1:10;
    X=;
    y=Data_ok(7:9:90,j);
    =regress(log(y),X,0.05)
    t=1:20;
    Nihe(j,:)=b;
    yt=b(1)+b(2).*t';
    ytt=exp(yt);
    WeiLai(j,:)=ytt(1:20);
    plot(t,ytt,'LineWidth',2,'Color','k')
end
if j==2;
    x2=5:10;
    X2=;
    y2=Data_ok(43:9:90,j);
    =regress(y2,X2,0.05)
    t2=1:20;
    Nihe(j,:)=b;
    yt2=b2(1)+b2(2).*t2';
    WeiLai(j,:)=yt2(1:20);
    plot(t2,yt2,'LineWidth',2,'Color','k')
end
aa=;
tt=1:10;
plot(tt,aa/10,'--*c')
Xf=;
=regress(aa',Xf,0.05)
tf=1:20;
ytf=bf(1)+bf(2).*tf';
plot(tf,ytf/10,'LineWidth',1,'Color','r')
grid on
end
???     X=;
                 |
Error: Missing variable or function

foreveringxq 发表于 2010-8-16 13:40

不懂呀~~~~~~~~~~~

linmatsas 发表于 2010-8-16 15:49

好奇怪为什么会在那显示错误…………

csuzhangtao 发表于 2010-8-16 17:55

路过。。。。。

我就是独狼 发表于 2010-8-16 21:54

头晕了~~~~~~~~~~~~~~~~~~~~~~~~~····

紫辰 发表于 2010-8-16 22:08

呵呵,不懂。。。。。。

双调 发表于 2010-8-16 22:30

为什么要加表情进去呢

追鸿 发表于 2010-8-26 11:33

强人,佩服死了。呵呵,不错啊

beanbean823 发表于 2010-8-26 11:34

(*^__^*) 指点系词……激扬文字……  

zhoulb 发表于 2010-8-26 11:35

哦~~
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 关于长江水质预测与评价模型的