MATLAB ActiveX optional arguments

前端 未结 2 816
隐瞒了意图╮
隐瞒了意图╮ 2021-01-21 11:12

there is an ActiveX function, which I want to call from MATLAB, e.g.

PrintOut([Background], [Append], [Range], [OutputFileName], [From], [To], [Item], [Copies],         


        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-21 11:44

    According to the Matlab documentation, you can skip optional input arguments by using an empty array instead (i.e. []).

    So this would looks like:

    hdlActiveX.PrintOut([],needed args,[],needed args);
    

提交回复
热议问题