Matlab中的CVX工具包安装
原文链接:https://blog.csdn.net/liusandian/article/details/51981300
毕设做压缩感知,不知道如何入手。已经安装了Matlab2012a(x64),装个CVX工具包,主要是想用还原算法。如果有一起做压缩感知的,欢迎一起讨论啊~
首先去CVX工具包官方网站:http://cvxr.com/cvx/
工具包安装说明在 http://cvxr.com/cvx/doc/install.html
本人下载的CVX2.1
在安装说明中:
As of version 2.0, support for versions 7.4 (R2007a) or older has been discontinued. If you need to use CVX with these older versions of Matlab, please use CVX 1.22 or earlier, which will remain available indefinitely on the CVX Research web site.
意思是CVX2.0版本只能用在Matlab2007版本以后。
一下是安装过程原文:
-
Unpack the file anywhere you like; a directory called cvx will be created. There are two important exceptions:
- Do not place CVX in Matlab’s own toolbox directory, Octave’s built-in scripts directory.
- Do not unpack a new version of CVX on top of an old one. We recommend moving the old version out of the way, but do not delete it until you are sure the new version is working as you expect.
-
Start Matlab or Octave. Do not add CVX to your path by hand.
-
Change directories to the top of the CVX distribution, and run the cvx_setup command. For example, if you installed CVX into C\personal\cvx on Windows, type these commands:
cd C:\personal\cvx cvx_setup
1.解压下载压缩包,不要解压到Matlab自带的toolbox下,我解压到/Matlab2012/mytools(个人自建路径)。另外不要如果之前安装过CVX,解压时不要覆盖老版本文件。解压后该路径下会生成一个cvx文件夹。
2.启动Matlab
3.在Current Folder窗口中打开cvx文件夹
4.在Command Window中输入cvx_setup
然后等待安装成功,PATH和reference都自动设置好了,不需要手动设置~