octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63776] [octave-forge] (image) padarray vararg


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #63776] [octave-forge] (image) padarray varargin argument incompatibility with MATLAB
Date: Wed, 8 Feb 2023 20:51:41 -0500 (EST)

Follow-up Comment #1, bug #63776 (project octave):

In octave 8.0.90 on windows with image package 2.14.0, I get the following
from your example:


>> A = ones(4,4);
>> B = padarray(A,[2 0],'pre')
B =

   0   0   0   0
   0   0   0   0
   1   1   1   1
   1   1   1   1
   1   1   1   1
   1   1   1   1

>> B = padarray(A,[2 0],'post')
B =

   1   1   1   1
   1   1   1   1
   1   1   1   1
   1   1   1   1
   0   0   0   0
   0   0   0   0

>> B = padarray(A,[2 0],'both')
B =

   0   0   0   0
   0   0   0   0
   1   1   1   1
   1   1   1   1
   1   1   1   1
   1   1   1   1
   0   0   0   0
   0   0   0   0


the first one appears to match what you say you get from Matlab. can you
expand on what you expect to be different?  I notice the text of the function
you're recommending be edited doesn't match my version of the padarray
function. Can you confirm what version of the image package you're using with
the command 'var'?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63776>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]