フィルターのクリア

can't downsample a matrix

3 ビュー (過去 30 日間)
Kobi
Kobi 2014 年 2 月 12 日
編集済み: Matt J 2014 年 2 月 12 日
the downsample function downsample only the rows
for example:
y =
0.5377 -0.1241 -1.0689 1.0933
-2.2588 1.4090 -2.9443 -0.8637
0.3188 0.6715 0.3252 -1.2141
-0.4336 0.7172 1.3703 -0.0068
>> a=downsample(y,2)
a =
0.5377 -0.1241 -1.0689 1.0933
0.3188 0.6715 0.3252 -1.2141
i expected the matrix to downsample in the rows and columns what am i doing wrong?

採用された回答

Matt J
Matt J 2014 年 2 月 12 日
編集済み: Matt J 2014 年 2 月 12 日
The documentation says it will only downsample along rows, but you can extend it to 2D by doing,
tmp=downsample(y,2);
a=downsample(tmp.',2).';

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by