Matlab function (fsparse) from github produces an error- why?
조회 수: 26 (최근 30일)
이전 댓글 표시
So, I'm calling the function "top99neo.m" from this research paper: https://www.topopt.mek.dtu.dk/Apps-and-software/New-99-line-topology-optimization-code-written-in-MATLAB
In order to use this function, I also downloaded the "Fast" package from: https://github.com/stefanengblom/stenglib
I needed this package because it contains "fsparse" which is used by the top99neo.m code. I added the package to my directory. But, everytime I call top99neo(300,100,0.5,3,8.75,3,'N',0.5,2,0.2,500), I get the following error:
Error using fsparse (line 145)
.MEX-file not found on path.
I checked the fsparse.m file and it's all commented out except for "error('.MEX-file not found on path.');". So, I'm confused-- where is the actual fsparse function that top99neo is calling? and why is it not working for me if I added the entire Fast package to my working directory? Thanks!
답변 (1개)
Kartik
2023년 2월 21일
Hi Rachel,
From the error message, it seems like the MEX files have not been created yet on your current path. You can try the following steps:
- Put “Fast” as your current folder.
- Run the “startup.m” script.
- Use the “make” command in the MATLAB command window.
MEX files shouldbe created by following the above-mentioned steps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Downloads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!