MATLAB ActiveX optional arguments

前端 未结 2 815
隐瞒了意图╮
隐瞒了意图╮ 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:57

    I use NaN for default/optional parameters and it works for me. So my version would be:

    hdlActiveX.PrintOut(NaN, needed args, NaN, needed args);
    

    Honestly, I think both would work fine. Hope this helps!

提交回复
热议问题