for example:if i know A1=1, A2=3,A3=7,B1=2,B2=4,B3=8 and so on, i want to symsum An+Bn , which n is variable,like A1+B1+A2+B2+A3+B3+…+An+Bn . how to type it in matlab?
Unfortunately gampdf is only defined for numeric x; it is not part of the Symbolic toolbox.
The Symbolic Toolbox does have a symbolic equivalent, but it does not have a nice interface to it. Seehttps://www.mathworks.com/help/symbolic/mupad_ref/stats-gammapdf.html and notice this is MuPAD, so to get at it from MATLAB you would need to use feval(symengine) or evalin(symengine)
Best Answer