How to implement levmar.h library in matlab

조회 수: 5 (최근 30일)
Shashank Rajput
Shashank Rajput 2021년 11월 30일
댓글: Shashank Rajput 2021년 12월 3일
I have been trying to utilize the levmar-2.6 library of C in matlab but couldn't do it. I was trying to run lmdemo.m but it says
Error in lmdemo (line 19)
[ret, popt, info]=levmar('expfit', 'jacexpfit', p0, x, 200, options, arg);
Can anyone give me a simple example how can i implement C library levmar in matlab to find the optimized parameter value.

답변 (1개)

Harikrishnan Balachandran Nair
Harikrishnan Balachandran Nair 2021년 12월 3일
Hi,
You can refer to the following documentation to learn about directly calling C library functions from Matlab: https://www.mathworks.com/help/matlab/call-c-library-functions.html
Hope this helps!
  댓글 수: 1
Shashank Rajput
Shashank Rajput 2021년 12월 3일
It is not a inbuilt library of the C but it has been written originally in C only. I need to use this levmar.h library in the Matlab

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by