[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51410] display of multidimensional arrays use
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #51410] display of multidimensional arrays uses 'ans' |
Date: |
Fri, 7 Jul 2017 05:02:15 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?51410>
Summary: display of multidimensional arrays uses 'ans'
Project: GNU Octave
Submitted by: gyom
Submitted on: Fri 07 Jul 2017 09:02:14 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
When an array of more than two dimensions is displayed, 'ans' is used for the
name of the variable:
octave:15> a = rand (3,3,2)
a =
ans(:,:,1) =
0.462941 0.802606 0.761311
0.922112 0.916468 0.987126
0.963205 0.593986 0.087091
ans(:,:,2) =
0.42108 0.69784 0.62200
0.16416 0.16271 0.11518
0.41170 0.75955 0.64193
This is a little bit misleading as there is no variable 'ans':
octave:16> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
a 3x3x2 144 double
Total is 18 elements using 144 bytes
In comparison, Matlab displays the following:
>> a = rand (3,3,2)
a(:,:,1) =
0.2498 0.2543 0.3066
0.9429 0.8063 0.4474
0.6879 0.9031 0.8050
a(:,:,2) =
0.9369 0.2796 0.9091
0.1507 0.6469 0.1390
0.5728 0.2529 0.1284
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51410>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51410] display of multidimensional arrays uses 'ans',
Guillaume <=