Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem when i run a code in matlab
Date: Mon, 19 Jan 2009 14:33:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <gl22ut$i71$1@fred.mathworks.com>
References: <gl1qgu$qvq$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1232375581 18657 172.30.248.37 (19 Jan 2009 14:33:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 19 Jan 2009 14:33:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:512469


"Bikash Singh" <bikashsingh18@yahoo.com> wrote in message <gl1qgu$qvq$1@fred.mathworks.com>...
> I want to evaluate the Performance of WiMAXIEEE 802.16 OFDM Physical Layer
> For this purpose i run the related code in matlab. But in this code there is an error. And mention that the error is in line 8 is given below. And error is  
> "??? Attempt to reference field of non-structure array."
> 
> Error in ==> thesis at 8
> if (IEEE80216params.Link.DIUC == 0 ) && (IEEE80216params.Link.direction == 'Dlink')


It means that either IEEE80216params or IEEE80216params.Link is not a structure.

The way to check that is

t1 = isa(IEEE80216params,'struct')
t2 = isa(IEEE80216params.Link,'struct')

If IEEE80216params is a structure, but IEEE80216params.Link is not, then t1 = 1 and t2 = 0.