How can I interpolate this data?

Dear community,
For a project I have gathered the following data (see graph).
That is: for 3 phantom sizes (in this case) I have plotted the magnitude of a sinus (0-10) versus the measured phantom volume pulsation.
My question is, how can I use MATLAB to interpolate information from this data? I want to know for example what the expected volume pulsation is for a phantom with a diameter of 5.4 mm and a sinus magnitude of 7. Is this possible?
Thanks in advance.

 Accepted Answer

Andrei Bobrov
Andrei Bobrov on 25 Oct 2013
Edited: Andrei Bobrov on 25 Oct 2013
z = [13.33333 1.92982 0.42105
15.26316 1.92982 0.42105
15.96491 2.01754 0.70175
14.21053 2.80702 1.22807
17.36842 3.15789 1.40351
22.45614 3.64912 1.75439
17.89474 3.61404 1.92982
23.85965 3.64912 2.10526
25.61404 3.71930 2.70175
28.77193 3.78947 2.80702
31.92982 3.78947 3.15789].'; % volume pulsation (%)
x = 0:10; % magnitude of a sinus (%)
y = [2.4 7.2 14.4]; % diameter (mm)
[yy , xx] = ndgrid(y,x);
out = griddata(xx,yy,z,7,5.4);
or
out = interp2(xx,yy,z,7,5.4);

More Answers (0)

Categories

Find more on Medical Physics in Help Center and File Exchange

Asked:

on 25 Oct 2013

Edited:

on 25 Oct 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!