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: ceshi_Word.m
    path of file: ./repos/supermodeling/算法代码案例/第1章 利用MATLAB生成Word和Excel文档
    
    the code of the file until where you have to start completion: function ceshi_Word
%利用MATLAB生成Word文档
%   ceshi_Word
%

    
function ceshi_Word
%利用MATLAB生成Word文档
%   ceshi_Word
%
%   Copyright 2009 - 2010 xiezhh. 
%   $Revision: 1.0.0.0 $  $Date: 2009/12/14 12:37:00 $

% 设定测试Word文件名和路径
filespec_user = [pwd '\测试.doc'];

% 判断Word是否已经打开，若已打开，就在打开的Word中进行操作，否则就打开Word
try
    % 若Word服务器已经打开，返回其句柄Word
    Word = actxGetRunningServer('Word.Application');
catch
    % 创建一个Microsoft Word服务器，返回句柄Word
    Word = actxserver('Word.Application'); 
end