So I've only ever used matlab for simple matrix multiplication, and I've never written a program with inputs and outputs and loops and such. I tried looking for samples online, but I couldn't find anything I was able to understand.
I tried writing the following program:
(x and y are supposed to be vectors of length n, hence the input data. Same for d.)
function [ y ] = divdif( n,x,y )
for j=1: n-i
But it's not working. Any suggestions on how to fix it?