interp1 find values at axis zero problem The grid vectors must contain unique points.

1 visualizzazione (ultimi 30 giorni)
Voc=interp1(I,V,0);
it is a simple code, it runs with the first 2 sets of data but it doesn't run with the third.
someone help.
thanks
  4 Commenti
Rik
Rik il 15 Feb 2020
Have you checked if all the values are unique? You can make them unique by adding eps to one of the duplicates.

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 16 Feb 2020
The below entry numbers ignore the header line (so they refer to array indices)
Entry #102 occurs again at #111
Entry #105 occurs again at #108
Entry #113 occurs again at #128
Entry #101 occurs again at #117 and #119

Più risposte (1)

Asliddin Komilov
Asliddin Komilov il 16 Feb 2020
I have deleted data that was >0.024, so its fixed
thank you everyone

Categorie

Scopri di più su Preprocessing Data in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by