jjl0527 发表于 2011-3-31 23:55

求助~菜鸟的第一个matlab就挂掉了!

A=int16(rand(99));
B=zeros(99,99);
i=0;j=0;
for i=2:1:98
    for j=2:1:98
        B(i,j)=score(A(i,j),A(i,j-1),1.9)+score(A(i,j),A(i,j+1),1.9)+score(A(i,j),A(i-1,j),1.9)+score(A(i,j),A(i+1,j),1.9);
    end
end
这个怎么测试都不过……这是为什么?

521MATHS 发表于 2011-4-1 08:57

>> help score
score.m not found.
Use the Help browser Search tab to search the documentation, or
type "help help" for help command options, such as help for methods.
我的matlab7.1没有score这个函数

吴潇漾 发表于 2011-4-1 10:14

score函数没定义啊。。。

gaoshanliu水 发表于 2011-4-1 13:18

{:3_41:}{:3_41:}{:3_41:}

zjqylcy 发表于 2011-4-1 15:04

把你的错误提示发一下吗~~~
页: [1]
查看完整版本: 求助~菜鸟的第一个matlab就挂掉了!