Magnetic field representation in Octave

Miss_Fire
Messages
4
Reaction score
0

Homework Statement


I need to represent in Octave (using the quiver function) the magnetic field lines around a long wire which carries an electric current around the wire. The magnetic field of an infinitely long straight wire can be obtained by applying Ampere's law.

Homework Equations


The expression for the magnetic field is:
groapa8.png


The Attempt at a Solution


I wrote a program in Octave and I obtained the folowing figure using the formula:
11846305_818013438314755_500729020_n.jpg


I'm almost sure that these couldn't be magnetic field lines, because I read somewhere that they must be circular. Any help would be much appreciated[/B]
 
Pay closer attention to the representation.
 

Similar threads

Replies
14
Views
3K
Replies
16
Views
2K
Replies
2
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K