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

## [Octave-bug-tracker] [bug #62711] problem spaces matrix 3D printing

 From: anonymous Subject: [Octave-bug-tracker] [bug #62711] problem spaces matrix 3D printing Date: Tue, 5 Jul 2022 12:03:31 -0400 (EDT)

```URL:
<https://savannah.gnu.org/bugs/?62711>

Summary: problem spaces matrix 3D printing
Project: GNU Octave
Submitter: None
Submitted: Tue 05 Jul 2022 04:03:29 PM UTC
Category: Other
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 7.1.0
Discussion Lock: Any
Operating System: Any

_______________________________________________________

-------------------------------------------------------
Date: Tue 05 Jul 2022 04:03:29 PM UTC By: Anonymous
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

_______________________________________________________

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

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

```