**Problem :**

I have some of the time/frequency data and I try to interpolate it using a `interp2`

function of Matlab. My data `[F,T,data]`

is obtained from the different Matlab routine of a Matlab, spectrogram in case you are interested as below.

```
[~,F,T,data] = spectrogram(...)
data = 10*log10(data);
```

I can plot my data using `surf`

. My data is fine, I believe. But interpolating my data seems to be the problem. Even using the `interp2(F,T,data,F,T)`

(so actually no interpolating) gives the error as below.

```
interp2(F,T,data,f,t)
Error using griddedInterpolant
The grid vectors do not define a grid of points that match the given values.
Error in interp2>makegriddedinterp (line 228)
F = griddedInterpolant(varargin{:});
Error in interp2 (line 128)
```

What is going wrong here?