how zero padding is done in matlab with matlab code

1 件のコメント

Hans Scharler
Hans Scharler 2024 年 2 月 13 日
I saw your Discussion thread @Image Analyst and thought maybe there is a MATLAB answer for this question - https://www.mathworks.com/matlabcentral/discussions/tips/845271-trick-to-enlarge-a-matrix-by-padding-it-with-zeros

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

 採用された回答

Jason
Jason 2011 年 8 月 24 日

0 投票

Refer to padarray function.

2 件のコメント

Sean de Wolski
Sean de Wolski 2011 年 8 月 24 日
Image Processing Toolbox required.
DGM
DGM 2024 年 2 月 13 日
編集済み: DGM 2024 年 2 月 13 日
While it wasn't an option in 2011, MIMT does have a wrapper function padarrayFB(), which will work either with or without IPT installed. Downloading MIMT just for a simple zero padding task seems a bit like overkill, but I guess it depends what it's worth.

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

その他の回答 (1 件)

Steven Lord
Steven Lord 2024 年 2 月 13 日

1 投票

If you're using release R2023b or later, see the paddata function introduced in MATLAB in release R2023b.

カテゴリ

ヘルプ センター および File ExchangeThermal Analysis についてさらに検索

タグ

タグが未入力です。

質問済み:

2011 年 8 月 24 日

編集済み:

DGM
2024 年 2 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by