Splitting a mesh grid and put them together again.

3 vues (au cours des 30 derniers jours)
Lizan
Lizan le 22 Oct 2013
Hi,
I need to do a very dense mesh... but my computer cannot handle the amount of data. so I would like to split it into two, do the calculations separately and then put them together again to plot full coordinate system with the results.
How can I achieve this?
My code is currently:
[x,y] = meshgrid(-45:0.5:45, -45:0.5:45);
r = [x(:) y(:)];
.. later Ifocal is our data in size(r)
Imesh = reshape(Ifocal, length(x(:,1)),length(x(1,:)));
surf(x,y,Imesh)
  2 commentaires
francesco
francesco le 8 Nov 2013
Ifocal?
Walter Roberson
Walter Roberson le 8 Nov 2013
reshape(Ifocal, size(x))

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by