+ Post New Thread + Reply to Thread
Results 1 to 4 of 4

Thread: Ask help for understanding of this Matlab code

  1. #1
    Member level 2
    Points: 624, Level: 5
    yzou_ua's Avatar
    Join Date
    Nov 2008
    Posts
    44
    Helped
    0 / 0
    Points
    624
    Level
    5

    understanding matlab code

    This is the EXAMPLE 1.15 in "Fundamentals of Electromagnetics with MATLAB" (by Karl E. Lonngren, 2007):

    To plot the vector field A = exp(-(ro/alpha)²)uro
    where ro is one of cylindrical coordinates (ro, phi, z) and ruo denotes the unit vector of ro. alpha is cnst.

    The attached is code for plot this vector field and its divergence.

    I cannot understand what does it mean by following:
    Ax(k,s)=exp(-r2(k,s)/alpha.^2)*x(k,s);
    Ay(k,s)=exp(-r2(k,s)/alpha.^2)*y(k,s);

    Where do they come from??

    •   Alt 

      Advertising

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 12,876, Level: 27

    Join Date
    Feb 2002
    Posts
    747
    Helped
    78 / 78
    Points
    12,876
    Level
    27

    understanding matlab

    Why not email the author and ask:

    karl-lonngren@uiowa.edu

    (The University of Iowa)



  3. #3
    Member level 2
    Points: 624, Level: 5
    yzou_ua's Avatar
    Join Date
    Nov 2008
    Posts
    44
    Helped
    0 / 0
    Points
    624
    Level
    5

    codes for cylindrical coordinates in matlab

    Thx. I will have a try...

    It seems that these 2-lines code intend to convert the cylindrical coordinates to cartsian coord. and then carry on the derivative on x and y components, respectively.
    I'm not sure yet...

    Quote Originally Posted by VSWR
    Why not email the author and ask:

    karl-lonngren(at)uiowa.edu

    (The University of Iowa)



  4. #4
    Newbie level 3
    Points: 758, Level: 6

    Join Date
    Aug 2006
    Posts
    3
    Helped
    0 / 0
    Points
    758
    Level
    6

    Re: Ask help for understanding of this Matlab code

    Hi "yzou_ua"

    can you please email me the .m files for 'fundamentals of electromagnetics with matlab' ???

    i need it in urgent.

    I will be remain thankful to you :)



+ Post New Thread + Post New Thread + Reply to Thread