Advertisement
STANAANDREY

nested matlab

Mar 13th, 2023
1,204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.11 KB | None | 0 0
  1. function y=nested(d,c,x,b)
  2. if nargin<4
  3. b=zeros(d,1);
  4. end
  5. y=c(d+1);
  6. for i=d:-1:1
  7. y = y.*(x-b(i))+c(i);
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement