from Web Deployment Using MATLAB by Todd Flanagan
A web-based gene analysis demonstration using MATLAB Builder for COM

getProfilePlot()
function imageData = getProfilePlot()
    global workingSet;
    global workingSetT;
    
    f = figure('Visible', 'off');
    axesH = axes('Parent', f);
    plot(axesH, workingSetT, workingSet);
    xlabel('Time (Hours)');
    ylabel('Relative Expression Level');

    % Create the output filename
    imageData = getBitMap(f);
    
    close(f);    

Contact us at files@mathworks.com