matlab - Mapping values of a matrix to another matrix -
this question has answer here:
- mapping pixels of 2 matrices 2 answers
i have 2 matrices following dimensions:
matrix_1 --> 143810x2 matrix_2 --> 394x365
regarding matrix_1
, evaluate matrix of dimension 143810x1
.
since 394x365 = 143810x1
, want map values in matrix_1
matrix_2
having dimension in matrix_2
.
how can in matlab
?
thanks.
reshape lets rearrange data in array changing dimensions. input , output must have same number of elements can 1 column of matrix_1
@ time.
matrix_2_col_1 = reshape(matrix_1(:,1), size(matrix_2)); matrix_2_col_2 = reshape(matrix_1(:,2), size(matrix_2));
Comments
Post a Comment