Simple polynomial evaluation | MATLAB Cody
Code:
function y = simplePoly(x,n)
y=0;
t=1;
for i=1:n+1
y=y+t;
t=t*x;
end
end
function y = simplePoly(x,n)
y=0;
t=1;
for i=1:n+1
y=y+t;
t=t*x;
end
end
 Reviewed by Author
        on 
        
22:34
 
        Rating: 5
 
        Reviewed by Author
        on 
        
22:34
 
        Rating: 5
A Deep Dive into “5 Days of Matlab, Simulink & SimScape + ChatGPT” In the world of engineering, physical modeling, and control systems...
 
MATLAB Programs/Code (matlabcoding.com)
No comments