bugGNU Octave - Bugs: bug #56639, rescale: new function to scale an...


bug #56639: rescale: new function to scale an array to match a given interval

Submitted by:  CH <atcl>
Submitted on:  Tue 16 Jul 2019 10:33:44 PM UTC  
Category:  Octave Function Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Thu 18 Jul 2019 12:01:25 AM UTC, comment #7: 

Great.  Look for an m-file in Octave that is vaguely similar and start with that as a template.  That will have the basic form of the copyright notice, texinfo documentation, function prototype, input validation, function body, and BIST tests at end.

Rik <rik5>
Project Administrator
Wed 17 Jul 2019 11:02:35 PM UTC, comment #6: 

Since this should be implemented in an m-file, I am willing to contribute this.

CH <atcl>
Wed 17 Jul 2019 04:36:39 AM UTC, comment #5: 

Added item to https://wiki.octave.org/Short_projects and overhauled that page.

Kai Torben Ohlhus <siko1056>
Project Member
Wed 17 Jul 2019 02:47:05 AM UTC, comment #4: 

This would be very easy to write as an m-file and get 90% of the functionality.  The documentation even describes the algorithm (which is simple to guess anyways).  This would make a suitable introductory project for programmers wishing to start contributing to Octave.

Rik <rik5>
Project Administrator
Tue 16 Jul 2019 10:44:33 PM UTC, comment #3: 

I see, thank you. Updating the description. Here is a link to the Matlab documentation for the 'rescale' function. It's already listed in Octave's internal list of missing functions to be implemented.


Mike Miller <mtmiller>
Project Administrator
Tue 16 Jul 2019 10:40:36 PM UTC, comment #2: 

Thank you for your bug report. This needs a lot of clarification however, at least for me to understand what this is about.

Matlab 2019a does not appear to have any 'resize' function. Where is the function that you are referring to defined? Are you sure it's really part of Matlab?

Octave already has a function called 'resize', which changes the dimension of an array and pads or truncates as needed.

Mike Miller <mtmiller>
Project Administrator
Tue 16 Jul 2019 10:38:39 PM UTC, comment #1: 

Sorry, this was supposed to be called "rescale". Please re-title if possible.

CH <atcl>
Tue 16 Jul 2019 10:33:44 PM UTC, original submission:  

Matlab 2017b added a "resize" function, which scales the input data to a specific range. Does the function need to be specified here? Would this function be implemented as an .m file or low-level?

CH <atcl>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by atcl (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-16 mtmiller Severity3 - Normal => 1 - Wish
        Priority5 - Normal => 3 - Low
        Item GroupMatlab Compatibility => Feature Request
        StatusNeed Info => Confirmed
        Summaryresize function => rescale: new function to scale an array to match a given interval
    2019-07-16 mtmiller CategoryInterpreter => Octave Function
        StatusNone => Need Info

    Back to the top

    Powered by Savane 3.5