Matlab中的CVX工具包安装

本文详细介绍如何在Matlab环境下安装并配置CVX工具包,适用于进行压缩感知研究的初学者。文章提供了官方推荐的安装步骤,包括选择合适的安装位置、避免与旧版本冲突的方法,以及确保安装成功的关键命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

毕设做压缩感知,不知道如何入手。已经安装了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版本以后。

一下是安装过程原文:

  1. 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.
  2. Start Matlab or Octave. Do not add CVX to your path by hand.

  3. 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都自动设置好了,不需要手动设置~




评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值