1d interpolation from multiple text files
Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
0 votes
Partagez un lien vers cette question
- nearest neighbor interpolation
- bilinear interpolation
- First column is latitude
- Second column is longitude
- Third column consist on air temperature corresponding to that latitude and longitude.
- Each interpolation technique interpolate temperature(3rd column) in text file and save this interpolated text file with inter_NNH(means this text file has been interpolated with nearest neighbor) and inter_BILIN(means this text file has been interpolated with bi-linear interpolations).
- After that, there will be 72 text files remains in my folder. (24 for uninterpreted and 48 of interpolated.)
6 commentaires
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- Now my mind is that, code check each value of A0 and interpolate only NaN values with my method of interpolation(like, nearestest neighbor, spline etc.). Values other than NaN remains uninterpreted
- After interpolating these NaN values, my code pass this interpolated column of temperature to its P0 text file( means makes another text file with name int_methodName.text in which NaN or missing values are interpolated?
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- What t(nanx) is doing in the last line of my code? What kind of interpolation it is doing?
- This code running fine. But it not interpolating margin NaN values in my text file( mostly are of bottom ones)?
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Réponse acceptée
2 votes
Partagez un lien vers cette réponse
29 commentaires
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- what the loops are iterating over
- then you will know how many times the inner loop runs.
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- add a counter variable, and check its value after the code finishes (a universal solution).
- multiply the number of times the outer and inner loops run. This is easy because you can read the code (hint: look for size(out,...), and note that this is the number of rows and columns of the 3D data array).
- Understand the algorithm: each latitude and longitude is independently interpolated (as you requested), therefore it must iterate for each latitude and longitude...
- which is incidentally the number of lines of data in the data files.
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- Use a loop.
- Write a function.
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Plus de réponses (0)
Catégories
En savoir plus sur Interpolation of 2-D Selections in 3-D Grids dans Centre d'aide et File Exchange
Produits
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
