马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
X=[166,15.8,24.5,700,112,179,513;185,15.7,31.5,701,125,184,427;193,9.80,25.9,541,163,128,642;159,14.2,39.7,896,99.2,239,726;226,16.2,23.8,606,152,70.3,218;171,9.29,9.29,307,187,45.5,257;201,13.3,26.6,551,101,49.4,141;147,14.5,30.0,659,102,154,680;172,8.85,7.86,551,75.7,98.4,318;156,11.5,32.5,639,107,103,552;132,15.9,17.7,578,92.4,1314,1372;182,11.3,11.3,767,111,264,672;186,9.26,37.1,958,233,73.0,347;162,8.23,27.1,625,108,62.4,465;150,6.63,21.0,627,140,179,639;159,10.7,11.7,612,190,98.5,390;117,16.1,7.04,988,95.5,136,572;181,10.1,4.04,1437,184,101,542;146,20.7,23.8,1232,128,150,1092;42.3,10.3,9.70,629,93.7,439,888;28.2,12.4,53.1,370,44.1,454,852;154,13.8,53.3,621,105,160,723;179,12.2,17.9,1139,150,45.2,218;13.5,3.36,16.8,135,32.6,51.6,182;175,5.84,24.9,807,123,55.6,126;113,15.8,47.3,626,53.6,168,627;50.5,11.6,6.30,608,58.9,58.9,139;78.6,14.6,9.70,421,70.8,133,464;90.0,3.27,8.17,622,52.3,770,852;178,28.8,32.4,992,112,70.2,169;213,19.1,36.2,2220,249,40.0,168;170,13.9,29.8,1285,226,47.9,330;162,13.2,19.8,1521,166,36.2,133;203,13.0,90.8,1544,162,98.90,394;167,13.1,14.1,2278,212,46.3,134;164,12.9,18.6,2993,197,36.3,94.5;167,15.0,27.0,2056,260,64.6,237;158,14.4,37.0,1025,101,44.6,72.5;133,22.8,31.0,1633,401,180,899;156,135,322,6747,1090,228,810;169,8.00,308,1068,99.1,53.0,289;247,17.3,8.65,2554,241,77.9,373;166,8.10,62.8,1233,252,134,649;209,6.43,86.9,2157,288,74.0,219;182,6.49,61.7,3870,432,143,367;235,15.6,23.4,1806,166,68.8,188;173,19.1,17.0,2497,295,65.8,287;151,19.7,64.2,2031,403,182,874;191,65.4,35.0,5361,392,137,688;223,24.4,86.0,3603,353,97.7,479;221,20.1,155,3172,368,150,739;217,25.0,28.2,2343,373,110,494;164,22.2,35.5,2212,281,153,549;173,8.99,36.0,1624,216,103,257;202,18.6,17.7,3785,225,31.0,67.3;182,17.3,24.8,3073,246,50.7,109;211,24.0,17.0,3836,428,73.5,351;246,21.5,93.2,2112,354,71.7,195;164,16.1,38.0,2135,152,64.3,240;179,21.0,35.0,1560,226,47.9,330];
>> fori=[1:60];
>> forj=[1:7];
>> p(i,j)=X(i,j)/300
??? Subscript indices must either be real positive integers or logicals.
那有错?
另: X=[166,15.8,24.5,700,112,179,513;185,15.7,31.5,701,125,184,427;193,9.80,25.9,541,163,128,642;159,14.2,39.7,896,99.2,239,726;226,16.2,23.8,606,152,70.3,218;171,9.29,9.29,307,187,45.5,257;201,13.3,26.6,551,101,49.4,141;147,14.5,30.0,659,102,154,680;172,8.85,7.86,551,75.7,98.4,318;156,11.5,32.5,639,107,103,552;132,15.9,17.7,578,92.4,1314,1372;182,11.3,11.3,767,111,264,672;186,9.26,37.1,958,233,73.0,347;162,8.23,27.1,625,108,62.4,465;150,6.63,21.0,627,140,179,639;159,10.7,11.7,612,190,98.5,390;117,16.1,7.04,988,95.5,136,572;181,10.1,4.04,1437,184,101,542;146,20.7,23.8,1232,128,150,1092;42.3,10.3,9.70,629,93.7,439,888;28.2,12.4,53.1,370,44.1,454,852;154,13.8,53.3,621,105,160,723;179,12.2,17.9,1139,150,45.2,218;13.5,3.36,16.8,135,32.6,51.6,182;175,5.84,24.9,807,123,55.6,126;113,15.8,47.3,626,53.6,168,627;50.5,11.6,6.30,608,58.9,58.9,139;78.6,14.6,9.70,421,70.8,133,464;90.0,3.27,8.17,622,52.3,770,852;178,28.8,32.4,992,112,70.2,169;213,19.1,36.2,2220,249,40.0,168;170,13.9,29.8,1285,226,47.9,330;162,13.2,19.8,1521,166,36.2,133;203,13.0,90.8,1544,162,98.90,394;167,13.1,14.1,2278,212,46.3,134;164,12.9,18.6,2993,197,36.3,94.5;167,15.0,27.0,2056,260,64.6,237;158,14.4,37.0,1025,101,44.6,72.5;133,22.8,31.0,1633,401,180,899;156,135,322,6747,1090,228,810;169,8.00,308,1068,99.1,53.0,289;247,17.3,8.65,2554,241,77.9,373;166,8.10,62.8,1233,252,134,649;209,6.43,86.9,2157,288,74.0,219;182,6.49,61.7,3870,432,143,367;235,15.6,23.4,1806,166,68.8,188;173,19.1,17.0,2497,295,65.8,287;151,19.7,64.2,2031,403,182,874;191,65.4,35.0,5361,392,137,688;223,24.4,86.0,3603,353,97.7,479;221,20.1,155,3172,368,150,739;217,25.0,28.2,2343,373,110,494;164,22.2,35.5,2212,281,153,549;173,8.99,36.0,1624,216,103,257;202,18.6,17.7,3785,225,31.0,67.3;182,17.3,24.8,3073,246,50.7,109;211,24.0,17.0,3836,428,73.5,351;246,21.5,93.2,2112,354,71.7,195;164,16.1,38.0,2135,152,64.3,240;179,21.0,35.0,1560,226,47.9,330];
fori=[1:60];
>> a=zeros(1,0);
>> a=a+X(i,:);
??? Subscript indices must either be real positive integers or logicals.
请高手指教,小弟刚学,今天试做一题,不知哪里错了 |