MATLAB: Program sum in matlab programmingsum Any help for write this program will be great. Thank you Best Answer Here is a starting point for you. Use symsum function from Symbolic Toolbox. See the example:m=5;P=sym('P',[1 m]);t=sym('t',[1 m]);q=sym('q',[1 m]);syms k hfun=sum(symsum((P+(t.*q/2).*h)./(t),k,1,m))The rest is yours to do. Related SolutionsMATLAB: “Substitution function” by symbolic math toolbox doc subs %? MATLAB: How to write matlab code for the below equations Following may help you to start what you are doing:k=5;syms ty=sym('y',[1 k]);p=sym('p',[1 k]);v=sym('v',[1 k]);s=sym('s',[1 k]);n=sym('n',[1 k]);g=sym('g',[1 k]);y=sqrt(p).*g.*v.*s+symsum(sqrt(p).*g.*v.*s+n,t,1,k) Related QuestionRetrieve a variable from a functionHow to take summation for square of modulus for the multiplication of two complex matrices for the below equationExpression of the equations in the Symbolic Math Toolbox.How to write Continue Long Statements on Multiple LinesHow can i eliminate below error
Best Answer