Challenge

Project - Data Handling and Interpolation

>> [x,y] = meshgrid(-17.3:0.9,-28:3.91);

>> z = y.*exp(-x.^2-y.^2);
>> figure(1);
>> surf(x,y,z);
>> title('original sampling');
>> [xq1,yq1] = meshgrid(-17.3:0.9,-28:3.91);
>> zq1 = interp2(x,y,z,xq1,yq1);
>> figure(2);
>> surf(xq1,yq1,zq1);
>> title('Linear Interpolation using Finer grid');
>> zq2 = interp2(x,y,z,xq2,yq2,zq2,'cubic');

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.