Interpolation of data in a given area

3 次查看(过去 30 天)
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;
Заранее спасибо

采纳的回答

Walter Roberson
Walter Roberson 2022-4-11
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(:), '.')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by