How Do IPass a Double by Reference into a COM Object's Methods

15 ビュー (過去 30 日間)
James Lambert
James Lambert 2018 年 6 月 21 日
コメント済み: Walter Roberson 2018 年 6 月 21 日
I am trying to implement this method in matlab (Originally C#):
short RunFrozPredict(out double Cycles, out double finalC, out double finalKc, out double finalA, out double finalKa, out double finalCt, out double finalKct)
This is the code I wrote to try this:
cyc = 0;
fc = 0;
fkc = 0;
fa = 0;
fka = 0;
fct = 0;
fkct = 0;
invoke(afgrow, 'RunFrozPredict', cyc, fc, fkc, fa, fka, fct, fkct)
And this is the error message I am getting
Error using COM.Afgrow_Application/invoke
Error: Type mismatch, argument 1
Thanks for any help

回答 (0 件)

カテゴリ

Help Center および File ExchangeCOM Component Integration についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by