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:
index out of bound

Subject: index out of bound

From: Gule Saman

Date: 10 Mar, 2009 17:26:01

Message: 1 of 1

I get the following error can anyone tell me how to resolve this?

??? Attempted to access n(50,50); index out of bounds because numel(n)=1.

Error in ==> fresnel_theory at 19
        numerator(x,y)=(((n(x,y))-(1/n(x,y)))^2)*((sin(theeta_incident))^2);

Error in ==> file_reading_plotting_pol_angle at 95
        [n]=fresnel_theory(I_min,I_max,x,y);

Tags for 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