How to retain the duplicate data while making contour plots using scatterinterpolant?

I am working with a .csv data which have duplicate values. when i am interpolating those data to prepare a contour plot between date (x-axis), time (y-axis) and values at z-axis. I am getting this - Warning: Duplicate data points have been detected and removed - corresponding values have been averaged. I want to retain the duplicate values rather to remove it. please help me out.

6 Comments

Why you want to retain the duplicate data? It is a good practice not to keep the duplicates.
If one of the copies says the input value 4 value corresponds to output 7 and another says it corresponds to 3, then what value should be output if 4 is input? 3? 7? 5? Both 3 and 7?
@KSSV when i am plotting the data then the plot shows 0 values in the areas where there is some values other than 0 (especially after 18th dec in the data). So I think it is interpolating in such a way that those values are also removed or replaced by 0. therefore i want to keep the duplicates.
The defined interpolation routines never return the set of all possible solutions implied by duplicate coefficients.
Related Q with more details
@shravani: It is OK to ask follow-up questions in the same thread even after accepting an answer. Often times it is better, because the person who answered is already familiar with your data.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2014a

Asked:

on 8 Oct 2018

Edited:

on 8 Oct 2018

Community Treasure Hunt

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

Start Hunting!