Cody

Problem 909. Image Processing 003: Interferometer Data Interpolation

Solution 2941549

Submitted on 13 Sep 2020 by Rafael S.T. Vieira
  • Size: 8
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
% Load a real Interferometry Profile % Previously TriScatteredInterp corrected % Randomly induce Drop-Outs tic urlwrite('http://tinyurl.com/matlab-interferometer','Inter_zN.mat') load Inter_zN.mat toc zN_orig=zN; %figure(44);surf(zN_orig,'LineStyle','none') zN_idx=find(~isnan(zN)); for i=1:20 zN(zN_idx(randi(size(zN_idx,1))))=0; end %figure(45);surf(zN,'LineStyle','none') tic out = Fix_interferometer(zN); toc delta=abs(out-zN_orig); fprintf('Max delta=%e\n',max(delta(:))) % Threshold based on a handful of test cases assert(max(delta(:))<5e-7,sprintf('Max delta=%f\n',max(delta(:))))

Suggested Problems

More from this Author246

Community Treasure Hunt

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

Start Hunting!