>> for n=1:100x(n)=factorial(n)+n^2end我用这个程序求,结果出来一大堆,不知道对不对,求高手指教!
你少了个求和,最后加一句sum
然后循环里 x(n) = 。。。那一句最后加一个分号,不让结果显示。