dataset transformation

12 ビュー (過去 30 日間)
Pieter
Pieter 2011 年 5 月 31 日
Hello,
Is there a fast way to transform a 2000x100 dataset into a 1x200000 dataset?
Thanks!

採用された回答

Walter Roberson
Walter Roberson 2011 年 5 月 31 日
Do you mean dataset in the sense of just an array, or do you mean dataset as in the Statistics (or Database?) toolkit?
If D is a matrix, then
D(:).'
would be 1 x numel(D) with the elements column-first.
reshape(D.',1,numel(D))
would be 1 x numel(D) with the elements row-first.
  1 件のコメント
Pieter
Pieter 2011 年 5 月 31 日
Thanks!
The reshape formula works perfectly!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by