Hello All,
I would like to create a function S_N, that would return the Nth term of a series. Here's what I have so far:
1 function S_N = S(N) 2 k = 1:N 3 A_k = 1./(k.^(3/2)+k.^(1/2)) 4 S_N = cumsum(A_k) 5 end
MatLab politely replies:
>> S_NError using S_N (line 2)Not enough input arguments.
I'm not sure what else MatLab wants. I would think this is a pretty simple fix for this uber program. (I can do it perfectly on my TI89 :D)
Much Thanks, Jim
Best Answer