Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cartesian to cylindrical
- clc; close all;
- clear all; X=input('x ni');
- Y=input('y ni');
- Z=input('z ni');
- rho=sqrt(X^X+Y^Y) phi=atand(Y/X);
- Z=Z
- ---------------------------
- Cylindercal to cartesian
- clc; close all;
- clear all; rho=input('rho ni');
- phi=input('fi ni');
- Z=input('Z ni');
- X=(rho*cosd(phi));
- Y=(rho*sind(phi)) ;
- Z=Z
- ___________________________
- Cartesian to spherical
- clc; close all; clear all;
- X=input('x ni');
- Y=input('y ni');
- Z=input('z ni');
- R=sqrt(X*X+Y*Y+Z*Z)
- theta=(acosd(Z/R))
- phi=(atand(Y/X))
- ______________________
- Sperical to cartigen
- clc;
- close all;
- clear all;
- R=input('R ni');
- theta=input('theta ni');
- phi=input('phi ni'); X=(R*sind(theta)*cosd(phi)) Y=(R*sind(theta)*sind(phi)); Z=(R*cosd(theta))
- _______________________
- Cylindrical to spherical
- clc;
- close all;
- clear all;
- rho=input('rho ni');
- phi=input('phi ni');
- z=input('z ni');
- x=rho*cosd(phi)
- y=rho*sind(phi)
- z=z
- r=sqrt(x*x+y*y+z*z)
- theta=acosd(z/r)
- phi=atand(y/x)
- __________________
- Spherical to cylindrical
- clc;
- close all;
- clear all;
- r=input('r ni');
- theta=input('theta ni');
- phi=input('phi ni');
- rho=(r*sind(phi))
- theta=theta
- Z=(r*cosd(phi));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement