Borrar filtros
Borrar filtros

ScatteredInterpolant - first interpolation takes a long time

1 visualización (últimos 30 días)
Markus Toivonen
Markus Toivonen el 20 de Ag. de 2018
Hello,
I have the following functions:
componentInterpolants = cellfun(@(v) {scatteredInterpolant([x y z],v)}, num2cell(e,1));
efInterpolant = @(coords) cell2mat(cellfun(@(interpolant) {interpolant(coords)}, componentInterpolants));
Where x,y,z represent coordinates and v is a column vector corresponding to a electric field in a certain dimension (it goes through all of the three dimensions).
When running the ef_Interpolant for the first time, it takes roughly 30 seconds for it to return a value. But the interpolations after that take roughly 0.01 seconds. I think the biggest factor is that the data is in 3 dimensions? Is there anything I can do to decrease the time required for the first interpolation?

Respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Productos


Versión

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by