简体   繁体   中英

Matrix resizing function in GNU Octave

There is a function called as resizem in MATLAB which resize the input matrix to the specified size using some interpolation method.

Anybody knows any function in OCTAVE which do the same matrix resizing? There is a function resize in OCTAVE but its doing some thing else.

The function resizem belongs to the Matlab mapping toolbox. It is not part of the core Matlab so you will not find it in Octave either. You would find it the Octave mapping package (if it was implemented there which is not yet).

However, at first glance it seems to be simple to replace it with handling interp2 yourself, or use the image package imresize as a drop-in replacement. That's all dependent on how you are using resizem .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM