필터 지우기
필터 지우기

Can Matlab compiler pass the summary of functions?

조회 수: 2 (최근 30일)
Yoshihiro Yamada
Yoshihiro Yamada 2018년 1월 23일
댓글: Yoshihiro Yamada 2018년 1월 26일
When I build .Net assemly from C# source codes, the summary of functions, which is represented by xml comments, can be seen via "Objet Browser" in Visual Studio.
Is it possible to see the summary of Matlab functions, which is compiled by mcc command, in "Objet Browser", like C#?
If possible, please let me know how to realize.

채택된 답변

Kojiro Saito
Kojiro Saito 2018년 1월 25일
This way is not documented, but there's a way to create function summaries to your dll.
Go to Apps -> Library Compiler and select .NET assembly and package functions, MATLAB Compiler SDK will create document XML files in for_testing folder. In this example, MagicSquareComp.xml will be created in for_testing folder. This XML file contains summary tags. Copy this XML file to your dll (For example, MagicSquareComp.dll) which was added to reference in your Visual Studio solution file. After that, you will find summary information is added in Object Browser.
You can edit the XML file so as to change the descriptions. You might need to restart Visual Studio to refresh the display of Object Browser.
Hope this help.
  댓글 수: 5
Kojiro Saito
Kojiro Saito 2018년 1월 26일
I think comments in the original MATLAB function will be converted to &ltremarks&gt tag in XML. But &ltparam&gt and &ltreturns&gt tags will be created if the MATLAB function has input arguments and output. So, you can edit the XML file manually.
Yoshihiro Yamada
Yoshihiro Yamada 2018년 1월 26일
Comparing to the current situations, it will be much convinient that I can browse the Matlab header contents via object browser.
Thank you for your suggestions!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 .NET アセンブリの統合에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!