1D array, elements are 2D matrix [test]

1 回表示 (過去 30 日間)
Jin
Jin 2011 年 2 月 11 日
I read a 10 frames YUV sequence into matlab. There are three outputs, Y U and V. Each of them is a 1 by 10 matrix, and Each of the elements contains a 288*352 matrix. I wonder what is the syntex to read the 10 frames separatly. I try Y[:,1] but didn't work.
Thanks!
  1 件のコメント
Oleg Komarov
Oleg Komarov 2011 年 2 月 11 日
Post the answer of whos Y U V

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

回答 (2 件)

Vieniava
Vieniava 2011 年 2 月 11 日
What about this:
Y(:,:,1)

Walter Roberson
Walter Roberson 2011 年 2 月 12 日
Yf = cat(3,Y{:}); Uf = cat(3,U{:}); Vf = cat(3,V{:});
Then frame K is Yf(:,:,K) and Uf(:,:,K) and Vf(:,:,K)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by