yesh ee alb_merged (1)
yesh ee alb_merged (1)
x = 6;
y = 8;
z = 10;
% Display results
fprintf('Spherical Coordinates:\n');
figure;
subplot(1, 2, 1);
xlabel('X');
ylabel('Y');
zlabel('Z');
grid on;
axis equal;
title('Rectangular Coordinates');
text(x, y, z, sprintf(' (%.2f, %.2f, %.2f)', x, y, z), 'Color', 'r');
sphere_z = r * cos(theta);
text(sphere_x, sphere_y, sphere_z, sprintf(' (%.2f, %.2f, %.2f)', sphere_x, sphere_y, sphere_z), 'Color',
'b');
subplot(1, 2, 2);
hold on;
xlabel('X');
ylabel('Y');
zlabel('Z');
axis equal;
grid on;
Air
4.440e+000 : >4.674e+000
4.207e+000 : 4.440e+000
3.973e+000 : 4.207e+000
3.739e+000 : 3.973e+000
3.505e+000 : 3.739e+000
3.272e+000 : 3.505e+000
3.038e+000 : 3.272e+000
2.804e+000 : 3.038e+000
2.570e+000 : 2.804e+000
2.337e+000 : 2.570e+000
2.103e+000 : 2.337e+000
1.869e+000 : 2.103e+000
1.635e+000 : 1.869e+000
1.402e+000 : 1.635e+000
1.168e+000 : 1.402e+000
9.341e-001 : 1.168e+000
7.004e-001 : 9.341e-001
4.666e-001 : 7.004e-001
2.329e-001 : 4.666e-001
<-8.726e-004 : 2.329e-001
Density Plot: V, Volts