フィルターのクリア

Transfer All Cell Elements to a Single Vector Without For Loop

1 回表示 (過去 30 日間)
czeslaw
czeslaw 2018 年 4 月 26 日
回答済み: Ameer Hamza 2018 年 4 月 27 日
Hi all,
Supposed I have
a=[{[2 3]};{[3 5 4]}]
What I want is to transfer all members in "a" to vector b
b=[2 3 3 5 4]
How can I do that without "for loop" ?
I write nested loop code that can do that, but the computing time is to slow for hundreds thousands of data.
Please help. Thank you.

採用された回答

Ameer Hamza
Ameer Hamza 2018 年 4 月 27 日
b = cell2mat(a)

その他の回答 (0 件)

カテゴリ

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