How to implement levmar.h library in matlab

6 Ansichten (letzte 30 Tage)
Shashank Rajput
Shashank Rajput am 30 Nov. 2021
Kommentiert: Shashank Rajput am 3 Dez. 2021
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.

Antworten (1)

Harikrishnan Balachandran Nair
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 Kommentar
Shashank Rajput
Shashank Rajput am 3 Dez. 2021
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Solar Power finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by