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: arSym2str.m
    path of file: ./repos/d2d/arFramework3/Subfunctions
    
    the code of the file until where you have to start completion: % a = arSym2str(b)
% 
% convert sym array to string array
% 
%   This function is used in arCompileAll (later in arCcode) and was called
%   sym2str previously.
% 
% This function is intended to catch all versio
    
function is used in arCompileAll (later in arCcode) and was called
%   sym2str previously.
% 
% This function is intended to catch all version dependencies when symbolic
% expressions are converted to strings.

function a = arSym2str(b)
    nonzeros = logical(b~=0);
    a = cell(size(b));
    for j=1:size(b,1)
        for jj = 1:size(b,2)
            if ( nonzeros(j,jj) )
                a{j,jj} = char(b(j,jj));
            else
                a{j,jj} = '0';
            end