How to Interpolate an entire data set
Mostra commenti meno recenti
How to Interpolate an entire data set.I have two datasets and I am trying to determine tidal energy for the lat and lon values of my elasmobranch sightings. Since teh specific sighting lat and lon dont exist in my tidal data I am trying to interpolate them.
I have tried interpolting each value seperatly, but I recieve a value of 0. I've tried both interp1 and interp2
Tides=readtable('Tide_Data_Final.csv')
C = Tides.Longitude
M= Tides.Latitude
A=Tides.Tide
F=scatteredInterpolant(C,M,A);
Anew= F(52.00,-6.00);
figure(1)
stem3(C,M, A)
hold on
stem3(52.000,-6.00, Anew, 'r')
hold off
grid on
xlabel('\sigma')
ylabel('\alpha')
interp2(C,M,A,52.000,-6.000)
4 Commenti
Star Strider
il 1 Ago 2023
Shark Week!
Uploading Tide_Data_Final.csv would be helpful.
Madison
il 1 Ago 2023
Madison
il 1 Ago 2023
Risposta accettata
Più risposte (1)
I think you interchanged latitude and longitude in your call. It should be
Anew= F(-6.00,52.00);
instead of
Anew= F(52.00,-6.00);
which should give something around
Anew = 0.7983
Categorie
Scopri di più su Interpolation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!