vielleicht kann mir jemand weiterhelfen. Mein folgender Code interpoliert mir meine Windgeschwindigkeiten mit Hilfe von TriScatteredInterp.
Da einige punkte ausserhalb der aufgespannten Fläche liegen erhlaten ich dafür ein NaN. Die betroffenen Werte finde ich über tri und T.
Jetz will ich eine Fallunterscheidung einfügen die für Fall 1: Punkt innerhalb der Fläche eine lineare Interpolation ausführt oder Fall2: Punkt liegt ausserhalb der Grundfläche eine 'nearest' Interpolation durchführt.
am sChluss sollen die Werte aus beiden Interpolationen in eine matrix gespeichert werden.
Code:
% The interpolation creates a delaunay triangulation between the different % wind measuring stations. With the wind speeds as a z-axis a convex hull % is set up. The wind speeds are then linearly interpolated to the farm % latitude an longitude. % If wind farm is outside the meshed station grid 'nearest neighbour' % interpolation is used.
%
% Output: % w_avg_int: Interpolated wind speed %
% The interpolation creates a delaunay triangulation between the different % wind measuring stations. With the wind speeds as a z-axis a convex hull % is set up. The wind speeds are then linearly interpolated to the farm % latitude an longitude. % If wind farm is outside the meshed station grid 'nearest neighbour' % interpolation is used.
%
% Output: % w_avg_int: Interpolated wind speed %
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.