Where is the 'constr' function located?

6 ビュー (過去 30 日間)
Thomas Mansencal
Thomas Mansencal 2014 年 9 月 18 日
編集済み: Thomas Mansencal 2014 年 10 月 18 日
Hi,
I'm trying to run some code from Brian Smits: http://www.cs.utah.edu/~bes/papers/color/
And I'm having the following error:
Undefined function 'constr' for input arguments of type 'char'.
The calling code is as follows:
x = pinv(A) *white;
whiteS = x + null(A) * constr('colorFun',zeros(N-3,1),options);
I thought the function was in the Optimization toolbox, but it actually doesn't looks like it.
Cheers,
Thomas
  1 件のコメント
Thomas Mansencal
Thomas Mansencal 2014 年 10 月 18 日
編集済み: Thomas Mansencal 2014 年 10 月 18 日
I actually managed to find legacy functions here and there and run the code, we have pushed all that here: https://github.com/colour-science/smits1999
Thomas

サインインしてコメントする。

回答 (1 件)

Matt J
Matt J 2014 年 9 月 18 日
編集済み: Matt J 2014 年 9 月 18 日
If the following link is talking about the same 'constr', it was replaced by fmincon some time ago
  2 件のコメント
Thomas Mansencal
Thomas Mansencal 2014 年 9 月 18 日
Thanks for that! The function signature is however different, so a dumb search and replace doesn't work unfortunately!
Matt J
Matt J 2014 年 9 月 18 日
No, but you could write your own constr.m file that acts as a wrapper for fmincon, passing the input data to fmincon in the form that it expects.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by