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);
조회 수: 2 (최근 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!