フィルターのクリア

Merging of Cell data into one entry.

1 回表示 (過去 30 日間)
azizullah khan
azizullah khan 2014 年 7 月 20 日
編集済み: Azzi Abdelmalek 2014 年 7 月 20 日
ans =
Columns 1 through 6
'AMEX' 'ARCA' 'BATS' 'BEX' 'CHX' 'CSFBCROSS'
Columns 7 through 12
'DRCTEDGE' 'EDGEA' 'ISE' 'ISLAND' 'LAVA' 'NITEECN'
Column 13
'NSX'
ans is a cell of size 1 x 13 i want the data to be like ans ='AMEX,ARCA,BATS,BEX,CHX,CSFBCROSS,and so on' please help me..if any problem open the attachment...thanks in advance...
  1 件のコメント
azizullah khan
azizullah khan 2014 年 7 月 20 日
??? Undefined function or method 'strjoin' for input arguments of type 'cell'.
error occurs.........due to of type cell...

サインインしてコメントする。

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 20 日
編集済み: Azzi Abdelmalek 2014 年 7 月 20 日
A={'AMEX' 'ARCA' 'BATS' 'BEX' 'CHX'};
B=strjoin(A,',')
  3 件のコメント
Wayne King
Wayne King 2014 年 7 月 20 日
what version of MATLAB are you using?
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 20 日
編集済み: Azzi Abdelmalek 2014 年 7 月 20 日
Try this
A={'AMEX' 'ARCA' 'BATS' 'BEX' 'CHX'};
B=cell2mat([strcat(A(1:end-1),',') A(end)])

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScope Variables and Generate Names についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by