how to select particular cell in the cell array and particular column in that cell array

1 回表示 (過去 30 日間)
singh
singh 2015 年 4 月 29 日
編集済み: singh 2015 年 5 月 3 日
X2=horzcat([XY2{3}]);
d=X2(:,4);
any one can solve in single line

回答 (1 件)

David Sanchez
David Sanchez 2015 年 4 月 29 日
You have to add new values to old ones:
% initialize your data (I do it with empty array to make it easy)
X0 = [];
Y0 = [];
for i=1:3
% update your data with whatever you do, I', just adding i for demonstration purposes
X0 = [X0 i];
Y0 = [Y0 i];
XY1_table = array2table([X0;Y0]','VariableNames',{'X0' 'Y0'})
end

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by