kwg881102 发表于 2009-8-26 11:03:57

忙饭大家帮我看看

function f=jiecheng(x)
if x=1
    f=1
else
    f=x*jiecheng(x-1)
end
f


??? Error: File: d:\MATLAB7\work\jiecheng.m Line: 3 Column: 5
The expression to the left of the equals sign is not a valid target for an assignment.
页: [1]
查看完整版本: 忙饭大家帮我看看