Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

No tags are associated with this thread.

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.

Contact us