For any one that is interested I have used the following code to anwser the question;
out=double(int32(rand(22,12)*9));
phi=linspace(0,pi,13);
theta=linspace(0,2*pi,23);
phi=[phi; phi];
theta=[theta; theta];
phi=reshape(phi,1,2*length(phi));
theta=reshape(theta,1,2*length(theta));
[phi,theta]=meshgrid(phi,theta);
r = zeros(size(phi,1),size(phi,2));
for i = 1:12
for j=1:22
r(j*2:j*2+1,i*2:i*2+1) = out(j,i);
end
end
x=r.*sin(phi).*cos(theta);
y=r.*sin(phi).*sin(theta);
z=r.*cos(phi);
mesh(x,y,z)
axis square
axis off
hidden off