I have a zip file downloaded for a library I want to use, but I am not sure where to extract it to. Also, what command sequence do I use to include the library once I have it extracted correctly?
Will this fix my 'unable to compile' error?

댓글 수: 10

Guillaume
Guillaume 2018년 7월 3일
It very much depends on what the library is. Have you got a link to it?
Usually, a library worth downloading would also have instruction on how to install it. Is this not the case?
Evan Mossel
Evan Mossel 2018년 7월 3일
here is the link: https://www.mathworks.com/matlabcentral/fileexchange/23475-moon-position
I apologize I am new to Matlab
Adam
Adam 2018년 7월 3일
Just put the files somewhere on your path. You'll have to build a mex for that but it is in mentioned in the introductory section of the main file that you download.
Evan Mossel
Evan Mossel 2018년 7월 3일
I completed this, but it gave an error in the compiler. So I tried to install the correct compiler but received the fatal error message. I then used the patch in the bug report but it still did not work. My version is R2016a.
Evan Mossel
Evan Mossel 2018년 7월 3일
편집: Evan Mossel 2018년 7월 3일
UPDATE: I am using a different library as shown below, but a still getting a compiling error https://www.mathworks.com/matlabcentral/fileexchange/56041-moon-position
Adam
Adam 2018년 7월 4일
Errors in an arbitrary 3rd party submission on file exchange are usually best asked of the author, though if you give more information here people may be able to help. Just saying you get a compiling error doesn't give any information for anyone to help you.
Aarti Dwivedi
Aarti Dwivedi 2018년 7월 4일
MATLAB usually does a good job of using from a particular library if it can find in its path. Have you tried adding the library to your path?
Evan Mossel
Evan Mossel 2018년 7월 5일
@Adam I would give more details on the error but that is literally all it gives. It says "error compiling" and will not run.
@AArti Dwivedi I believe it is correctly added to the path as it prompted me to do this when I extracted the .zip folder into the R2016a folder.
Aarti Dwivedi
Aarti Dwivedi 2018년 7월 6일
Have you tried putting breakpoints in your code to investigate more?
Evan Mossel
Evan Mossel 2018년 7월 6일
I have not. I will try this

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2018년 7월 3일

댓글:

2018년 7월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by