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:
gradient of a plot

Subject: gradient of a plot

From: Snow White

Date: 23 Mar, 2009 15:36:01

Message: 1 of 2

Hi,

I want to find the gradient of a plot which is a plot of polang,intensity, but i get the following error,

??? Error using ==> gradient at 50
Invalid inputs to GRADIENT.

Error in ==> refractive_index_estimation at 92
        grad=gradient(intensity,polang)

bye

Subject: gradient of a plot

From: Snow White

Date: 23 Mar, 2009 16:05:18

Message: 2 of 2

polang being on the x-axis while intensity on the yaxis

"Snow White" <gulesaman@gmail.com> wrote in message <gq8a91$kei$1@fred.mathworks.com>...
> Hi,
>
> I want to find the gradient of a plot which is a plot of polang,intensity, but i get the following error,
>
> ??? Error using ==> gradient at 50
> Invalid inputs to GRADIENT.
>
> Error in ==> refractive_index_estimation at 92
> grad=gradient(intensity,polang)
>
> bye

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