Hello i have made an interpolation of a descrete CSV file which is attached and turned it into continues function using interp1.
it went without an error , but when i tried to plot continues function using xq vector,it said
'Subscript indices must either be real positive integers or logicals.'
Where did i go wrong?
data = load('t2.csv');
x = data(:,1);
y = data(:,2);
coef_fun = @(lambda) interp1(x_data, y_data(x_data),lambda, 'linear', 'extrap');
xq = linspace(5e-6,13.5e-6,10000);