I'm trying to plot the sum of 1/(k-1) from k=s+1 to 100, where s is the independent variable, ranging from 1 to 99. Currently, I have:
s=(1:99);
plot(s, symsum(1/(k-1),s+1,100))
This gives me the following error: Operands to the and && operators must be convertible to logical scalar values.
Error in sym/symsum (line 109) if isnan(a) isnan(b)
Is there a way to do this? Thank you!
Best Answer