No BSD License  

Highlights from
m2googlechart

image thumbnail
from m2googlechart by Adam Leadbetter
Demonstrates acessing a Java class from Matlab in order to generate Google Chart API plots.

googleChartEncodeProducer
function outCell  =  googleChartEncodeProducer
%googleChartEncodeProducer produces a cell array for the Google Chart API
%
% outCell  =  googleChartEncodeProducer
%
%  To encode a value for the Google Chart API, use
%    code  =  outCell{valueToEncode + 1};

  encodeString  =  'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.';
  
  outCell  =  cell(4096,1);
  
  ij  =  1;
  ik  =  1;
  while(ij  <  65)
    ii  =  1;
    while(ii  <  65)
      outCell{ik}  =  [encodeString(ij) encodeString(ii)];
      ii  =  ii + 1;
      ik  =  ik + 1;
    end
    ij  =  ij + 1;
  end

Contact us at files@mathworks.com