You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: visualizeCellsCylindrical3D.m
    path of file: ./repos/FVTool/Visualization
    
    the code of the file until where you have to start completion: function visualizeCellsCylindrical3D(phi)
%VISUALIZECELLS plots the values of cell variable phi

    
function visualizeCellsCylindrical3D(phi)
%VISUALIZECELLS plots the values of cell variable phi
%
% SYNOPSIS:
%   visualizeCellsCylindrical3D(phi)
%
% PARAMETERS:
%
%
% RETURNS:
%
%
% EXAMPLE:
%
% SEE ALSO:
%

% Written by Ali A. Eftekhari
% See the license file

% domain_length = MeshStructure.numberofcells.*MeshStructure.cellsize;
d = phi.domain.dims;
[TH,R,Z]=meshgrid(phi.domain.cellcenters.y, ...
    phi.domain.cellcenters.x, phi.domain.cellcenters.z);
[X,Y,Z]=pol2cart(TH(:),R(:),Z(:)); % in Matlab: [X,Y,Z]=pol2cart(TH,R,Z);
X=reshape(X,d(1),d(2),d(3)); % these three lines work in Matlab and Octave
Y=reshape(Y,d(1),d(2),d(3));
Z=reshape(Z,d(1),d(2),d(3));
hold on
% surf three cylinders
surf(squeeze(X(floor(2*d(1)/3),:,:)), squeeze(Y(floor(2*d(1)/3),:,:)), ...
    squeeze(Z(floor(2*d(1)/3),:,:)), squeeze(phi.value(floor(2*d(1)/3),:,:)));
surf(squeeze(X(floor(d(1)/3),:,:)), squeeze(Y(floor(d(1)/3),:,:)), ...
    squeeze(Z(floor(d(1)/3),:,:)), squeeze(phi.value(floor(d(1)/3),:,:)));
surf(squeeze(X(1,:,:)), squeeze(Y(1,:,:)), ...
    squeeze(Z(1,:,:)), squeeze(phi.value(1,:,:)));

% surf three circles
surf(squeeze(X(:,:,1)), squeeze(Y(:,:,1)), ...
    squeeze(Z(:,:,1)), squeeze(phi.value(:,:,1)));
surf(squeeze(X(:,:,floor(d(3)/2))), squeeze(Y(:,:,floor(d(3)/2))), ...
    squeeze(Z(:,:,floor(d(3)/2))), squeeze(phi.value(:,:,floor(d(3)/2))));
surf(squeeze(X(:,:,end