bugGNU Octave - Bugs: bug #62711, Align spaces differently when...

 
 

bug #62711: Align spaces differently when displaying N-dimensional arrays

Submitter:  None
Submitted:  Tue 05 Jul 2022 04:03:29 PM UTC
   
 
Category:  Interpreter Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 06 Jul 2022 01:28:52 AM UTC, comment #3: 

I changed the title for clarity as this topic has nothing to do with 3D printing.

Arun Giridhar <arungiridhar>
Group Member
Wed 06 Jul 2022 12:57:11 AM UTC, comment #2: 

Just for reference, Matlab does the same thing as Octave and only aligns one plane at a time.

Rik <rik5>
Group administrator
Tue 05 Jul 2022 06:46:54 PM UTC, comment #1: 

Marking as a wish for a future Octave version.

Markus Mützel <mmuetzel>
Group administrator
Tue 05 Jul 2022 04:03:29 PM UTC, original submission:  

Hello Octave!

This is how 3D matrix is printed, with spacing not same between layers.

>> round (repmat (reshape ([1 1000 100 10], 1, 1, 4), 3, 3) * pi)
ans =

ans(:,:,1) =

   3   3   3
   3   3   3
   3   3   3

ans(:,:,2) =

   3142   3142   3142
   3142   3142   3142
   3142   3142   3142

ans(:,:,3) =

   314   314   314
   314   314   314
   314   314   314

ans(:,:,4) =

   31   31   31
   31   31   31
   31   31   31


Please you print like this? Now full 3D matrix use to calculate spacing, not each layer separately.

ans =

ans(:,:,1) =

      3      3      3
      3      3      3
      3      3      3

ans(:,:,2) =

   3142   3142   3142
   3142   3142   3142
   3142   3142   3142

ans(:,:,3) =

    314    314    314
    314    314    314
    314    314    314

ans(:,:,4) =

     31     31     31
     31     31     31
     31     31     31


Octave already do it correct for 1D and 2D like this

>> [10 1000 100 1]'
ans =

     10
   1000
    100
      1


Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 arungiridhar (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-07-06 arungiridhar Summaryproblem spaces matrix 3D printing Align spaces differently when displaying N-dimensional arrays
    2022-07-05 mmuetzel CategoryOther Interpreter
        Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        Item GroupOther Feature Request
        Release7.1.0 dev

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code