Know Formula used in function Matlab

조회 수: 2 (최근 30일)
Francesco campagna
Francesco campagna 2017년 12월 14일
댓글: Steven Lord 2017년 12월 14일
Good morning everyone!
I'm developing C++ software for my project using 3d accelerometer/gyroscope MPU6050, and I would like to know the formula used by Matlab for a general function__, let's say the " source code" that explain the math behind the objects functions, for example the function interp3
Of course the same is for other functions used.
Thank you very much for your attention! Have a nice day, FC

채택된 답변

Steven Lord
Steven Lord 2017년 12월 14일
Many of the functions in MATLAB are implemented as MATLAB function files. For those, you can read the code. The interp3 function falls into this category.
For built-in functions like fft or sin, we don't distribute the source code. If you want to see how those functions are implemented, your first step is to go here.
  댓글 수: 2
Francesco campagna
Francesco campagna 2017년 12월 14일
Thanks Steven for your kind reply!
Let's say that I'm more interested in advanced functions such as _interp3, how is it possible to access to those files you are talking about?
For me it's just important the math, since later I have_to develop them in C++ by myself.
Thanks! FC
Steven Lord
Steven Lord 2017년 12월 14일
If they are implemented as a MATLAB function, you can edit them. Just be careful not to modify them.
Depending what you're trying to do and what functions you need to use, you might find the MATLAB Coder product useful to generate code. The documentation indicates interp3 is supported for code generation, though the end of the interp3 documentation page lists some limitations.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by