Thread Subject: Problem when i run a code in matlab

Subject: Problem when i run a code in matlab

From: Bikash Singh

Date: 19 Jan, 2009 12:09:02

Message: 1 of 3

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

Subject: Problem when i run a code in matlab

From: Sadik

Date: 19 Jan, 2009 14:33:01

Message: 2 of 3

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

Subject: Problem when i run a code in matlab

From: Chun Ming Tan

Date: 15 Feb, 2009 13:36:01

Message: 3 of 3

"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')

After the line "global IEEE80216params;"
Add this line: "IEEE80216params = IEEE80216_params();" without quotes, provided you already have IEEE80216_params.m with all the parameters inside it.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com