V
V
Vladimir Gorbunov2015-05-11 13:14:24
MATLAB
Vladimir Gorbunov, 2015-05-11 13:14:24

How to interpolate data in matlab?

It is necessary to interpolate the wavelengths from 2 files. How to do it in matlab?

fid = fopen('Hemoglobin.txt', 'r');
a = fscanf(fid, '%g %g %g', [2 inf]);
a = a';
fclose(fid);
lamd=a(:,1);
EHb=a(:,2);
    
fid = fopen('sclera.txt', 'r');
a = fscanf(fid, '%g %g %g', [4 inf]);
a = a';
fclose(fid);
l=a(:,1);

it is necessary that the interpolation be lamd to l

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question