How Do IPass a Double by Reference into a COM Object's Methods
조회 수: 14 (최근 30일)
이전 댓글 표시
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
댓글 수: 1
Walter Roberson
2018년 6월 21일
You and Cordell should consider working together https://www.mathworks.com/matlabcentral/answers/406857-how-to-pass-a-double-value-by-reference
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 COM Component Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!