FYI this is the script Voss share with us and the one Im trying to male it work with the new file:
M = readmatrix('Matrix Sphere.txt');
idx = find(all(isnan(M),2),1); M(idx,:) = []; M = [M(1:idx-1,:) M(idx:end,:)]; M(1,:) = M(1,[end 1:end-1]);
idx = find(isnan(M(1,:))); z = M(2:end,idx(1)); M(:,idx) = [];
angles = M(1,:); M(1,:) = [];
angles, z, M
[x,y] = pol2cart(deg2rad(angles),M);
figure
plot3(x,y,z,'.')
figure
x_surf = x(:,[1:end 1]);
y_surf = y(:,[1:end 1]);
z_surf = z(:,ones(1,numel(angles)+1));
surf(x_surf,y_surf,z_surf)
