Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: segmentation error
Date: Thu, 10 Jan 2008 10:50:19 +0000 (UTC)
Organization: King's College London
Lines: 29
Message-ID: <fm4t9b$i06$1@fred.mathworks.com>
References: <flvs6e$1tb$1@fred.mathworks.com> <fm0i99$60m$1@fred.mathworks.com> <fm1im6$8ck$1@fred.mathworks.com> <fm1vmf$7tq$1@fred.mathworks.com> <fm2hei$3i8$1@fred.mathworks.com> <fm4cpt$dbv$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1199962219 18438 172.30.248.38 (10 Jan 2008 10:50:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 10 Jan 2008 10:50:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477
Xref: news.mathworks.com comp.soft-sys.matlab:445179



So it looks as though A1 is not a libpointer.

>> A1=3

A1 =

     3

>> get(A1)
??? Error using ==> get
Invalid handle object.


>> A1=libpointer('double',1)
 
A1 =
 
libpointer
>> get(A1)
       Value: 1
    DataType: 'double'

>> class(A1)

ans =

lib.pointer