Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
midpoint of 2D Meshgrid

Subject: midpoint of 2D Meshgrid

From: mahdi roozbhani

Date: 28 May, 2012 22:44:07

Message: 1 of 1

I have the below x y z coordinates.
[x y] = meshgrid(1:1:4);
z =zeros(length(x));

How can I find the center coordinate of each square ?

Other question:
If it was 3D mesh, How could I find the centroid of each cube ?

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us