在matlab2012a中运行程序出现如下报错,
Undefined function 'dct' for input arguments of type 'double'.
或者Undefined function 'dct' for input arguments of type 'char'.
或者类似的问题,都可以解决。
查询了很多博客,发现可能是版本过低的问题,下载了matlab2018版本,现在试一下效果:
运行成功!!!
所采用的matlab2018b安装及教程链接附上: