Monday, May 16, 2005

Interesting MATLAB functions

MATLAB AUTOMATION CLIENT INTERFACE

Creating COM Objects in MATLABThe following commands create an Automation server object and an Automation control object in MATLAB: title('ActiveX Calendar') fp = get(gcf,'Position');set(gca,'Ytick',[]), set(gca,'Xtick',[]);set(gca,'box','on')calendarPosition = get(gcf,'DefaultAxesPosition').*fp([3 4 3 4]) ;hCalendar = actxcontrol('MSCAL.Calendar', calendarPosition+1, gcf)
% Here, f will be the parent figure window of the control.
hExcel = actxserver('excel.application')

0 Comments:

Post a Comment

<< Home