フィルターのクリア

concatenating certain columns of a (numeric) matrix. The id of columns of interest stored in a numeric array. Also some columns are selected more than once.

1 回表示 (過去 30 日間)
I have a numeric matrix A. I want to generate matrix B (with the same size as A) from certain columns of matrix A. Columns of interest are specified in an array and some columns in B are repeated more than once.

採用された回答

KSSV
KSSV 2016 年 6 月 6 日
K = rand(10) ;
L = rand(10) ;
col = [1 3 7 10] ; % columns to be replaced
L(:,col) = K(:,col) ;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by