Borrar filtros
Borrar filtros

Interpolation of data in a given area

2 visualizaciones (últimos 30 días)
Lev Mihailov
Lev Mihailov el 11 de Abr. de 2022
Respondida: Walter Roberson el 11 de Abr. de 2022
I have 4 sets of coordinates (representing a square, I need to interpolate and get a 200x200 matrix.
%set of coordinates:
amax=1.49895;
amin=1.49747;
bmin=2.62186;
bmax=2.62471;
Заранее спасибо

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Abr. de 2022
amax=1.49895;
amin=1.49747;
bmin=2.62186;
bmax=2.62471;
N = 200;
avec = linspace(amin, amax, N);
bvec = linspace(bmin, bmax, N);
[A, B] = meshgrid(avec, bvec);
%now demonstrate
scatter(A(:), B(:), '.')

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by