Rescale MbyMby3 matrix, type Double

1 回表示 (過去 30 日間)
Joel
Joel 2016 年 6 月 21 日
コメント済み: Star Strider 2016 年 6 月 22 日
I came over an old piece of code which I would like to make work with Matlab2016a.
partw is a MbyMby3 Matrix [1729, 1729, 3], type double.
In the code the following lines generate an error message in Matlab2016a.
partw=double(rescale(partww));
partwg=rgb2gray(double(rescale(partw)));
Undefined function 'rescale' for input arguments of type 'double'.
The code should have been functional as is given the version of Matlab that was used at the time (around 2010). So I need to change the rescale function to work with the type double - assuming there is another function I should use now instead.
Regards

採用された回答

Star Strider
Star Strider 2016 年 6 月 21 日
The only rescale function in the online documentation is in the Fixed Point Designer Toolbox. The one you want may be a user-written function that you’ll have to find wherever your found the code you’re using.
  4 件のコメント
Joel
Joel 2016 年 6 月 22 日
Another good point, cheers!
It turned out you were correct and the code now works properly with the user defined function rescale.
Star Strider
Star Strider 2016 年 6 月 22 日
My pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by