sum of products to a series and a function
显示 更早的评论
Hello,
I wanted to find a series of 'h' starting from 1 to "p" for the expression:

where H(m) is a known series of p values; erfc is complementary error function, u is a known parameter. I have written the expression in Mupad successfully and could evaluate the series in Matlab by copying the expression from Mupad to matlab command window since H(m)is located in Matlab worksplace. This is tedious when the series gets longer and needs to change the value of "u".
I appreciate your help. Thank you. maharjan
回答(2 个)
per isakson
2015-2-1
编辑:per isakson
2015-2-1
1 个投票
Is matlabFunction what you are looking for?   See matlabFunction, Convert symbolic expression to function handle or file
类别
在 帮助中心 和 File Exchange 中查找有关 Code Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!