getSlope function issues for MATLAB code
5 ビュー (過去 30 日間)
古いコメントを表示
I am trying to run this program in MATLAB R2024a but getting errors:
I might just be reading the code wrong but it looks like this script used a function 'getSlope' on line 93 of the 'Run_Motion_Detector' function. When I try to run this code it displays an error saying it (getSlope) is an undefined function or variable. Am I missing this function in an update or has it been replaced by a recent update? Is there an equivalent function in MATLAB I can code as a substitute ? The code's authors states:
- Slope Method - calculates a best-fit linear slope for a window of data. Requires both the voltage readings and their corresponding timestamps.
1 件のコメント
Walter Roberson
2025 年 1 月 9 日
You have not overlooked anything. The function getSlope is used by that File Exchange contribution, but the function getSlope is defined by only one File Exchange contribution (defined in an incompatible manner.)
There is the vague possibility that getSlope is part of OpenSIM https://opensim-org.github.io/opensim-moco-site/docs/1.2.0/html_user/classOpenSim_1_1LinearFunction.html#af1fe21f11ba47052d346cad681cbf50b but it seems implausible.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!