Unrecognized function or variable 'tradeoff'
Show older comments
I am trying to execute a code on Matlab from a known script and i am receiving this answer:
Unrecognized function or variable 'tradeoff'.
The scrip was made to a version of matlab in 2017, and using a open-source toolbox for MATLAB called MTEX
The script:
% Use trade-off curve to find cutoff between well-constrained and poorly-constrained grains
knee = tradeOff(fraction);
xlabel('Number of grains (cumulative)')
ylabel('Indexed fraction')
I tried to change for different forms like "TradeOff" "Tradeoff" "tradeoff" "tradeOff
If someone could help me I would really appreciate it
Thank you
Accepted Answer
More Answers (1)
Luke Hill
on 5 Mar 2024
0 votes
The tradeOff function is a script used in the paper of Cross et al. (2017) - you can download it from the supporting information section of their publication. Store the tradeOff.m script in the same folder as your matlab project and then the code "knee = tradeOff(fraction)" should work automatically.
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!