Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news02.roc.ny.POSTED!53ab2750!not-for-mail
From: Doug Schwarz <see@sig.for.address.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Variable addresses?
References: <f72smj$3ed$1@fred.mathworks.com> <4694f90f$1@news1-rz-ap.ethz.ch> <f7tsms$m4r$1@fred.mathworks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
User-Agent: MT-NewsWatcher/3.5.1 (Intel Mac OS X)
Message-ID: <see-3B5D28.17330121072007@news.frontiernet.net>
Lines: 34
X-Complaints-To: abuse-news@frontiernet.net
X-Trace: 52616e646f6d49562b9a4c60c190d420504df0dffaf546edc2c17678c7d66fcb07eb324247be7a831be48a32607e9682e44a0dd335fea00d75c4b23ec7238e52554430d0b7af5a3b82a16d5b444876d7d89e2215f8027cb187046f9de2d90d0a4b7438829e87d21173c3672f80f46953
X-Abuse-Info: Please be sure to forward ALL headers so that we may process your complaint properly.
NNTP-Posting-Date: Sat, 21 Jul 2007 21:32:53 UTC
Date: Sat, 21 Jul 2007 21:32:53 GMT
Xref: news.mathworks.com comp.soft-sys.matlab:420331



In article <f7tsms$m4r$1@fred.mathworks.com>,
 "Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote:

> >> 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

pr is just the pointer to the block of memory containing the real part 
of the array.  pi is the same for the imaginary part, 0 (null pointer) 
meaning that the array has no imaginary part.

-- 
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.