Wrog example in help? (Calling Functions in Shared Libraries)

>> hfile = fullfile(matlabroot,'extern','include','matrix.h');
>> loadlibrary('libmx',hfile)
Index exceeds matrix dimensions.
Error in loadlibrary>getLoadlibraryCompilerConfiguration (line 527)
Error in loadlibrary (line 263)

답변 (2개)

Navaneeth Raman
Navaneeth Raman 2015년 4월 23일
Hello,
I am able to run the example. What version of MATLAB are you running the example in? Also, try executing the following commands and then run the example.
>>restoredefaultpath
>>rehash toolboxcache
This will refresh the function and file system path caches and will remove directories that you have added on your MATLAB path.
Thanks,
Navaneeth
Laszlo Sass
Laszlo Sass 2015년 4월 24일

0 개 추천

Hello,
I'm running 2015a. I try:
>> restoredefaultpath
>> rehash toolboxcache
>> hfile = fullfile(matlabroot,'extern','include','matrix.h');
>> loadlibrary('libmx',hfile) Index exceeds matrix dimensions.
Error in loadlibrary>getLoadlibraryCompilerConfiguration (line 527)
Error in loadlibrary (line 263)
I get same error.
Laszlo

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

태그

질문:

2015년 4월 22일

답변:

2015년 4월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by