Some facts about meshgrid

Post date: Aug 31, 2011 1:32:17 PM

N_row = 5; N_col = 3;

[col_sub row_sub] = meshgrid(1:N_col,1:N_row);

col_sub =

1 2 3

1 2 3

1 2 3

1 2 3

1 2 3

row_sub =

1 1 1

2 2 2

3 3 3

4 4 4

5 5 5