<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/284491</link>
    <title>MATLAB Central Newsreader - Cartesian - cylindrical transformations</title>
    <description>Feed for thread: Cartesian - cylindrical transformations</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.nl/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 12 Jun 2010 16:28:05 +0000</pubDate>
      <title>Cartesian - cylindrical transformations</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/284491#753956</link>
      <author>Bogathi </author>
      <description>hi,&lt;br&gt;
Recently i have problem in plotting a function. here it is&lt;br&gt;
E_i = (E_x, E_y,E_z), components of a vector in Cartesian. Each of the component is a function of cylindrical coordinates, ie.,E_i is 3-d matrx . I want to plot these components in Cartesian planes - XZ,YZ. I could get XY from pol2cart command.&lt;br&gt;
Can any one help in this regard.&lt;br&gt;
Thnks in advance.&lt;br&gt;
Reddy</description>
    </item>
    <item>
      <pubDate>Sat, 12 Jun 2010 19:50:24 +0000</pubDate>
      <title>Re: Cartesian - cylindrical transformations</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/284491#753986</link>
      <author>Roger Stafford</author>
      <description>"Bogathi " &amp;lt;bogathi.reddy@gmail.com&amp;gt; wrote in message &amp;lt;hv0cil$5j9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; hi,&lt;br&gt;
&amp;gt; Recently i have problem in plotting a function. here it is&lt;br&gt;
&amp;gt; E_i = (E_x, E_y,E_z), components of a vector in Cartesian. Each of the component is a function of cylindrical coordinates, ie.,E_i is 3-d matrx . I want to plot these components in Cartesian planes - XZ,YZ. I could get XY from pol2cart command.&lt;br&gt;
&amp;gt; Can any one help in this regard.&lt;br&gt;
&amp;gt; Thnks in advance.&lt;br&gt;
&amp;gt; Reddy&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;If I understand you correctly, I can't see that there is any difficulty here.  You apparently want surface plots made of each of the vector field components for planes orthogonal to each of the three cartesian axes.  Each of these components is a known function of the cylindrical coordinates, r, t (theta), and z.  (I'm assuming the usual definition of cylindrical coordinates in terms of x, y, and z holds.)&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;For a plane orthogonal to the y-axis ("XZ plane"), just establish a rectangular mesh in x and z coordinates with y held to some constant, y0.&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;[X,Z] = meshgrid(linspace(x1,x2),linspace(z1,z2)); % x and z limits&lt;br&gt;
&amp;nbsp;R = sqrt(X.^2+y0^2);&lt;br&gt;
&amp;nbsp;T = atan2(y0,X);&lt;br&gt;
&lt;br&gt;
For the E_x component, for example, do this plot:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;surf(X,Z,E_x(R,T,Z))&lt;br&gt;
&lt;br&gt;
where E_x can be evaluated, as you have said, in terms of r, t, and z.  This gives you a rectangular grid of points as projected onto the XZ plane.&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
  </channel>
</rss>
