• Remix
  • Share
  • New Entry

on 28 Oct 2021
  • 14
  • 40
  • 0
  • 0
  • 253
close all;
clear;
spharm2
view(118,81)
shading interp
hold
Current plot held
[x,y,z]=sphere(120);
a=-3,b=-3.6; c=3;
a = -3
r=1.2; %radius%left
%p=[a b c r]
s1=surf(x*r+a,y*r+b,z*r+c);
b=-b;%right blk
surf(x*r+a,y*r+b,z*r+c);
r=.6; b=-b;c=4;
surf(x*r+a,y*r+b,z*r+c,'EdgeC','y')
b=-b;
surf(x*r+a,y*r+b,z*r+c,'EdgeC','y')
camlight('headlight')
Image
Remix Tree