Where do i add a loadlibrary command in a class definition?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
i want to write a Matlab class file which implemtens functions provided by a library. This library contains functions which enable Matlab to read simulation results without the need to open the simulation software. So i want to create objects which contain the simulation results. My question is: Is it possible or does it even make sense to load the library in the class defintion? Where in the class defintion do i load the library?
Thanks for your help.
댓글 수: 3
Cedric
2013년 5월 13일
I am not sure either that I fully understand .. do you want to "pass the library dynamically" to some method of objects instantiated from your new class so they can each use a different library?
답변 (2개)
David Sanchez
2013년 5월 13일
It seems you are trying to do Object-Orientated Programming. If so, these two links might be of help.
David Sanchez
2013년 5월 13일
You do not have to load your libraries, your functions have to be saved as .m files in the working directory. Matlab looks for them automatically.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!