function [p]=HornerSimple(a,x)n=length(a);i=eye(n);p=a(n);for j=n-1:-1:1 p=a(j)*i+HornerSimple(a,x)*x; end end
MATLAB: Iam trying to run this Horners simple code but i cant because it says ‘Out of memory. The likely cause is an infinite recursion within the program.’
matlab function
Related Question
- Making matrix whose submatrices are from for loop
- How to avoid using if and else statements in this code
- PDE Boundary Condition only returns 1 evaluation Point
- How can i write F=(1/N).*f.*double(a).*f; correctly, the ,matlab(2015a) keeps giving me errors
- How to evaluate definite integral
- Help / panning efect in stereo audio
Best Answer