[Top][All Lists]

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

[Octave-bug-tracker] [bug #51560] Wrong dimension in pskmod.m output (co

From: Roland Baudin
Subject: [Octave-bug-tracker] [bug #51560] Wrong dimension in pskmod.m output (communications package)
Date: Mon, 24 Jul 2017 11:05:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux i586; rv:45.0) Gecko/20100101 Firefox/45.0


                 Summary: Wrong dimension in pskmod.m output (communications
                 Project: GNU Octave
            Submitted by: roland65
            Submitted on: Mon 24 Jul 2017 03:05:49 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Any



The dimensions of the pskmod output matrix should be the same as the input.
This is not true when the input is a column vector. Then the output is a line

Example to reproduce the bug:

d = randint (10, 1, 4); % d is 10 x 1
y = pskmod (d, 4, pi/4); % y is 1 x 10 instead of 10 x 1

To fix the issue, I simply added the lines:

if (size(x,2) == 1)
  y = y.';

just before the endfunction line in the pskmod.m code.

The fixed function is attached.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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