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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MAMATHA YADAVALLI
am 3 Apr. 2018
Beantwortet: Steven Lord
am 3 Apr. 2018
function y= practise(k)
k=2;
x=(rand(4)).*k;
syms j;
y=symprod(x,j,1,3);
end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Steven Lord
am 3 Apr. 2018
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 Kommentare
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!