# 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
* Mandatory Fields

Comment Type & Canned Response:

## Discussion

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>
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>
Tue 05 Jul 2022 06:46:54 PM UTC, comment #1:

Marking as a wish for a future Octave version.

Markus Mützel <mmuetzel>
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

## Attached Files

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

Attach Files:

Comment:

No files currently attached

## Dependencies

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 project members can vote.