Path: news.mathworks.com!not-for-mail
From: "Ned Hek" <skhekmat@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: taking log of an image data
Date: Thu, 2 Jul 2009 22:29:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <h2jcbe$qlu$1@fred.mathworks.com>
Reply-To: "Ned Hek" <skhekmat@hotmail.com>
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 1246573742 27326 172.30.248.38 (2 Jul 2009 22:29:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 2 Jul 2009 22:29:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1895225
Xref: news.mathworks.com comp.soft-sys.matlab:552574


Hi
I am trying to take log of an image data, it comes up with an error like

Function 'subsindex' is not defined for values of class 'struct'

I am not sure what actually this error is.
 could you please some one hint me with reasons,

data = dataread('C:\Users\afn_006.nii');
data2=log(data)