フィルターのクリア

a basic question in matlab

1 回表示 (過去 30 日間)
Mnr
Mnr 2015 年 6 月 21 日
編集済み: Azzi Abdelmalek 2015 年 6 月 21 日
Hello all,
If I have a 1xLxN matrix and would like to reshape it in order to get a LxN matrix, how I can do that? In particular, suppose I have a 1x2x4 matrix a:
a(1,:,1)=[0 0]; a(1,:,2)=[0 1];a(1,:,3)=[1 1];a(1,:,4)=[0 1];
and I would like to get a 4x2 matrix of [0 0;0 1;1 1;0 1]? Thanks.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 21 日
編集済み: Azzi Abdelmalek 2015 年 6 月 21 日
Edit
squeeze(a).'
  1 件のコメント
Walter Roberson
Walter Roberson 2015 年 6 月 21 日
Azzi, I'm not sure why you put the conjugate transpose in?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by