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);
3 ビュー (過去 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!