フィルターのクリア

how do i copy one column of a matrix with another column of a matrix in matlab?

46 ビュー (過去 30 日間)
sachin narain
sachin narain 2018 年 6 月 6 日
回答済み: Stephen23 2018 年 6 月 6 日
I have a 5x5 double ONes matrix and there is another 5x5 cell matrix .How do i copy the first column of the cell matrix to the 1st column of the ONes matrix?
I am attaching the two matrix here.Kindly help me.Thank you in advance

回答 (2 件)

KSSV
KSSV 2018 年 6 月 6 日
Let T be your ones double matrix of size 5X5 and S your cell string of size 5*5.
T = num2cell(T) ;
T(:,1) = S(:,1) ;

Stephen23
Stephen23 2018 年 6 月 6 日
Where C is your cell array, and M the matrix:
M(:,1) = [C{:,1}]

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by