MATLAB: Hi i am new. Kindly help me making this code.
infinite sumSymbolic Math Toolboxtime series
the answer is supposed to be 3/2 that i got by hand. kindly help how to find it by MATLAB code.
Best Answer
What did you try? Is there a reason why you did not try symsum? TRY IT!
help symsum
I will even point pout that symsum allows an upper limit of inf, so this was virtually a 2 line code. I'll give you the first line of the code I wrote, to get you started.
OptionUniform orUniformOutput set to0 (orfalse) means, that output from function will be stored in cell array. It is necessary when function (in your caseplus) returns non scalar values. If you set theUniformOutput value to1 ( ortrue), your function must return scalar values and the output will be concatenated into an array.
Best Answer