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:
Help with divergence,rotacionals and gradients

Subject: Help with divergence,rotacionals and gradients

From: Yukihara

Date: 12 Mar, 2009 18:19:53

Message: 1 of 3

Hi everyone,

Im a engeneering student and I´ve started using matlab few weeks ago.And now I have to handle a new project here in my university.

But Im not finding anything about divergences, rotacional and gradients on internet. I´d like to calculate this functions and after that I´d like to plot them.

Please , Could someone teach me or send tutorial for me?


Thanks

Subject: Help with divergence,rotacionals and gradients

From: Roger Stafford

Date: 12 Mar, 2009 19:15:06

Message: 2 of 3

Yukihara <danilo_yukihara@yahoo.com.br> wrote in message <14930162.1236882024328.JavaMail.jakarta@nitrogen.mathforum.org>...
> Hi everyone,
>
> Im a engeneering student and I?ve started using matlab few weeks ago.And now I have to handle a new project here in my university.
>
> But Im not finding anything about divergences, rotacional and gradients on internet. I?d like to calculate this functions and after that I?d like to plot them.
>
> Please , Could someone teach me or send tutorial for me?
>
>
> Thanks

  I assume by "rotacional" you mean 'curl' or 'rotor' here. These quantities are all based on various partial derivatives of three-dimensional field functions.

  In Matlab these can be obtained either from symbolically-expressed functions using the 'diff' function or approximated from discrete data using finite differences. Matlab possesses a 'gradient' function which does first order approximation of gradients on discrete data. There are also higher order approximations of gradients from discrete data to be had on the file exchange. I also see some file exchange entries that specifically find curls and divergences. I am not aware of any built-in symbolic toolbox functions that find curl, divergence, or gradient but as I say these can all be obtained in terms of the symbolic 'diff' function which does partial differentiation.

Roger Stafford

Subject: Help with divergence,rotacionals and gradients

From: Roger Stafford

Date: 12 Mar, 2009 19:44:02

Message: 3 of 3

  Actually, Yukihara, Matlab does have the 'curl' and 'divergence' functions for discrete data. I wasn't aware of them until now because my version of matlab is very old.

Roger Stafford

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