Home > freetb4matlab > Windows > examples > mat2xls.m

mat2xls

PURPOSE ^

% Save @var{obj} as an Excel sheet into the file @var{filename}. The

SYNOPSIS ^

function mat2xls (obj, filename)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} mat2xls (@var{obj},@var{filename})
% Save @var{obj} as an Excel sheet into the file @var{filename}. The
% object @var{obj} must be either a cell matrix or a real matrix, that
% is a 2-dimensional object. All elements of the matrix are converted
% to Excel cells and put into the first worksheet, starting at cell A1.
% Supported types are real values and strings.
%
% If @var{filename} does not contain any directory, the file is saved
% in the current directory.
%
% This function is intended to demonstrate the use of the COM interface
% within octave. You need Excel installed on your computer to make this
% function work properly.
%
% Examples:
%
% @example
%   mat2xls (rand (10, 10), 'test1.xls');
%   mat2xls (@{'This', 'is', 'a', 'string'@}, 'test2.xls');
% @end example
%
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003