Code covered by the BSD License
-
Energy Forecasting
-
energyForecastGUI(varargin)
ENERGYFORECASTGUI M-file for energyForecastGUI.fig
-
checkmotor(rpm, motordata)
This function is used to determine how closely the noise profile of new
-
createfigure(x1, y1, y2)
CREATEFIGURE(X1,Y1,Y2)
-
estimateSingleDay(energyData,...
estimateSingleDay(energyData, DayType, dayOfWeek, timeOfDay)
-
hhh=vline(x,in1,in2,in3)
function h=vline(x, linetype, label)
-
myCreateFigure(zdata1)
-
myDistFit(y)
MYDISTFIT Create plot of datasets and fits
-
mycurvefit(averageDay, thehou...
MYCURVEFIT Create plot of datasets and fits
-
plotCI(data, m1, s1, ci1, m2,...
-
PresenterScript.m
-
activeTest.m
-
dockfigures.m
-
motornoise_script.m
-
plotmodel.m
-
Energy Demo
-
myscript_template
-
View all files
from
Data Analysis with MATLAB for Excel Users
by Michael Agostini
Materials for public seminar of the same name (slides and demos)
|
| activeTest.m |
%% Test the MATLAB ActiveX Server Interface
% MATLAB (on Windows) can function as an activex server, as well as client.
% This allows you to drive MATLAB from Visual Basic, or inturn, drive Microsoft
% applications from MATLAB. This is a part of basic MATLAB and requires no additional
% products. More information is available in our help:
% http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f27470.html
% Copyright 2006-2009 The MathWorks, Inc.
%% Open Excel
hExcel = actxserver('excel.application');
hExcel.Visible = 1;
%% Create a workbook
hExcel.Workbooks.Add;
%% Inspect all the properties
inspect(hExcel);
pause(3);%give the inspector a moment to load the data from Excel
%% Fill a range of cells with data
hExcelRange = Range(hExcel,'A1:D4');
hExcelRange.Value = rand(4);
%% Open a more complicated example that ships with MATLAB
run ([docroot '/techdoc/matlab_external/examples/actx_excel'])
cd ([docroot '/techdoc/matlab_external/examples' ])
edit([docroot '/techdoc/matlab_external/examples/actx_excel'])
|
|
Contact us at files@mathworks.com