how to find symprod for double type values if i take it as seperate function. I am getting this error Undefined function 'symprod' for input arguments of type 'double'. Error in practise (line 5) y=symprod(x,j,1,3);
1 次查看(过去 30 天)
显示 更早的评论
function y= practise(k)
k=2;
x=(rand(4)).*k;
syms j;
y=symprod(x,j,1,3);
end
0 个评论
采纳的回答
更多回答(1 个)
Steven Lord
2018-4-3
You want to compute the product of the elements of x? If that's the case, don't use symprod. There are no symbolic calculations necessary. Just use the prod function instead.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!