Hello,
I am using 'fminunc' function that I expected to have it as long as the machine learning tool box is installed. the toolbox is installed but I am getting this error: " 'fminunc' requires Optimization Toolbox". Could you please advise?
Thanks,
Hamid

댓글 수: 1

Walter Roberson
Walter Roberson 2019년 1월 24일
I have seen no evidence that fminunc is associated with machine learning toolbox ?

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

 채택된 답변

Star Strider
Star Strider 2019년 1월 24일

0 개 추천

See the documentation on fminunc (link). It always has been part of the Optimization Toolbox.
Depending on the problem you are solving, you might be able to use the fminsearch (link) function. You may have to use it with the norm (link) function to get the same results
For example:
x = rand(5,1);
YourFunction = @(p) p(1).^2 + p(2).*x - 10;
P = fminsearch(@(p) norm(YourFunction(p)), [1; 1])

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

질문:

2019년 1월 24일

답변:

2019년 1월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by