You are now following this entry
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
Direct link to this entry
- /
-
Spheres
on 23 Oct 2022
- 2
- 13
- 0
- 0
- 157
clear
[x,y,z]=sphere
x = 21×21
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-0.1564 -0.1488 -0.1266 -0.0919 -0.0483 0.0000 0.0483 0.0919 0.1266 0.1488 0.1564 0.1488 0.1266 0.0919 0.0483 0.0000 -0.0483 -0.0919 -0.1266 -0.1488 -0.1564
-0.3090 -0.2939 -0.2500 -0.1816 -0.0955 0.0000 0.0955 0.1816 0.2500 0.2939 0.3090 0.2939 0.2500 0.1816 0.0955 0.0000 -0.0955 -0.1816 -0.2500 -0.2939 -0.3090
-0.4540 -0.4318 -0.3673 -0.2668 -0.1403 0.0000 0.1403 0.2668 0.3673 0.4318 0.4540 0.4318 0.3673 0.2668 0.1403 0.0000 -0.1403 -0.2668 -0.3673 -0.4318 -0.4540
-0.5878 -0.5590 -0.4755 -0.3455 -0.1816 0.0000 0.1816 0.3455 0.4755 0.5590 0.5878 0.5590 0.4755 0.3455 0.1816 0.0000 -0.1816 -0.3455 -0.4755 -0.5590 -0.5878
-0.7071 -0.6725 -0.5721 -0.4156 -0.2185 0.0000 0.2185 0.4156 0.5721 0.6725 0.7071 0.6725 0.5721 0.4156 0.2185 0.0000 -0.2185 -0.4156 -0.5721 -0.6725 -0.7071
-0.8090 -0.7694 -0.6545 -0.4755 -0.2500 0.0000 0.2500 0.4755 0.6545 0.7694 0.8090 0.7694 0.6545 0.4755 0.2500 0.0000 -0.2500 -0.4755 -0.6545 -0.7694 -0.8090
-0.8910 -0.8474 -0.7208 -0.5237 -0.2753 0.0000 0.2753 0.5237 0.7208 0.8474 0.8910 0.8474 0.7208 0.5237 0.2753 0.0000 -0.2753 -0.5237 -0.7208 -0.8474 -0.8910
-0.9511 -0.9045 -0.7694 -0.5590 -0.2939 0.0000 0.2939 0.5590 0.7694 0.9045 0.9511 0.9045 0.7694 0.5590 0.2939 0.0000 -0.2939 -0.5590 -0.7694 -0.9045 -0.9511
-0.9877 -0.9393 -0.7991 -0.5805 -0.3052 0.0000 0.3052 0.5805 0.7991 0.9393 0.9877 0.9393 0.7991 0.5805 0.3052 0.0000 -0.3052 -0.5805 -0.7991 -0.9393 -0.9877
●
y = 21×21
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 -0.0483 -0.0919 -0.1266 -0.1488 -0.1564 -0.1488 -0.1266 -0.0919 -0.0483 0 0.0483 0.0919 0.1266 0.1488 0.1564 0.1488 0.1266 0.0919 0.0483 0
0 -0.0955 -0.1816 -0.2500 -0.2939 -0.3090 -0.2939 -0.2500 -0.1816 -0.0955 0 0.0955 0.1816 0.2500 0.2939 0.3090 0.2939 0.2500 0.1816 0.0955 0
0 -0.1403 -0.2668 -0.3673 -0.4318 -0.4540 -0.4318 -0.3673 -0.2668 -0.1403 0 0.1403 0.2668 0.3673 0.4318 0.4540 0.4318 0.3673 0.2668 0.1403 0
0 -0.1816 -0.3455 -0.4755 -0.5590 -0.5878 -0.5590 -0.4755 -0.3455 -0.1816 0 0.1816 0.3455 0.4755 0.5590 0.5878 0.5590 0.4755 0.3455 0.1816 0
0 -0.2185 -0.4156 -0.5721 -0.6725 -0.7071 -0.6725 -0.5721 -0.4156 -0.2185 0 0.2185 0.4156 0.5721 0.6725 0.7071 0.6725 0.5721 0.4156 0.2185 0
0 -0.2500 -0.4755 -0.6545 -0.7694 -0.8090 -0.7694 -0.6545 -0.4755 -0.2500 0 0.2500 0.4755 0.6545 0.7694 0.8090 0.7694 0.6545 0.4755 0.2500 0
0 -0.2753 -0.5237 -0.7208 -0.8474 -0.8910 -0.8474 -0.7208 -0.5237 -0.2753 0 0.2753 0.5237 0.7208 0.8474 0.8910 0.8474 0.7208 0.5237 0.2753 0
0 -0.2939 -0.5590 -0.7694 -0.9045 -0.9511 -0.9045 -0.7694 -0.5590 -0.2939 0 0.2939 0.5590 0.7694 0.9045 0.9511 0.9045 0.7694 0.5590 0.2939 0
0 -0.3052 -0.5805 -0.7991 -0.9393 -0.9877 -0.9393 -0.7991 -0.5805 -0.3052 0 0.3052 0.5805 0.7991 0.9393 0.9877 0.9393 0.7991 0.5805 0.3052 0
●
z = 21×21
-1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000
-0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877 -0.9877
-0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511 -0.9511
-0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910 -0.8910
-0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090 -0.8090
-0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071 -0.7071
-0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878 -0.5878
-0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540 -0.4540
-0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090 -0.3090
-0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564 -0.1564
●
surf(x,y,z)
axis equal
hold on
for i=1:150
r=0.5;
X=r*x;
Y=r*y;
Z=r*z;
kx=randn;
ky=randn;
kz=randn;
surf(X+kx,Y+ky,Z+kz)
end
colormap colorcube
axis tight off
Open in MATLAB Online
Open in MATLAB Online
Please note that this entry may require the download of one or more File Exchange submissions.
Image
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)