matlab - Mapping values of a matrix to another matrix -


this question has answer here:

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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -