无法用minmax函数(错误提示为“缺少 Deep Learning Toolbox”)

在一段MATLAB代码中用到了minmax函数,但是却报错了。根据网上搜索的资料,下载了DeepLearnToolbox,也添加了路径,但还是报同样的错误。MATLAB的版本为2019b。程序本身没有其他问题,注释掉含minmax函数的语句后可正常运行。同样的代码在另一台电脑上(MATLAB2019a)可正常运行。图片说明

可能是你使用的版本没有对应的功能,需要另外购买。
可以使用相应功能代码
地址是:https://github.com/mathause/MATLAB/blob/master/General/datafun/minmax.m

function [ mm ] = minmax( x )
%MINMAX calculates minimum and maximum of an array
%
%Syntax
%   mm = MINMAX( x )
%
%Usage
%   mm = MINMAX( x ) returns [minimum maximum] of x
%
%Version History
% 22.07.2013    mah     created
%
%See Also
% min | max


mm = [min(x) max(x)];

end

https://blog.csdn.net/raiden_chen_42/article/details/78035530