Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Variable addresses?
Date: Sat, 21 Jul 2007 21:09:49 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 20
Message-ID: <f7tsms$m4r$1@fred.mathworks.com>
References: <f72smj$3ed$1@fred.mathworks.com> <4694f90f$1@news1-rz-ap.ethz.ch>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185052189 22683 172.30.248.35 (21 Jul 2007 21:09:49 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 21 Jul 2007 21:09:49 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:420330



>> Is it possible to get Matlab to display the hexadecimal address of Workspace variables?
> 
> format debug


Michael - this is very interesting (and entirely undocumented) - thanks for sharing. Can you please elaborate on the entries displayed by this debug format (and perhaps other undocumented format options)?

>> pi
ans =

Structure address = 102ad690 
m = 1           => # rows
n = 1           => # cols
pr = 11287160   => OS/JVM thread id?
pi = 0          => ???
    3.1416

Yair Altman
http://www.ymasoftware.com