[转载]Matlab中的CVX工具包安装

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版本以后。

一下是安装过程原文:

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




  • 6
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CVX是一个基于Matlab的凸优化建模系统,可以将Matlab转换为建模语言,用于指定约束和目标。你可以在CVX官方网站上下载CVX工具包,网址是http://cvxr.com/cvx/。安装CVX工具包的方法可以参考官方网站上的介绍,网址是http://cvxr.com/cvx/doc/install.html。如果你使用的是Windows系统,可以下载cvx-w64-zip压缩包,并将解压后的cvx文件夹拷贝到你习惯使用的目录下。启动Matlab,打开cvx文件夹,在Command Window输入cvx_setup命令即可完成安装安装完成后,你可以将cvx工具箱所在文件夹添加到MATLAB工作搜索目录,以便在Matlab使用CVX工具包。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [CVX-超好用的Matlab建模软件包(下载,安装以及使用)](https://blog.csdn.net/weixin_40148024/article/details/91879675)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Matlab凸优化工具包CVX安装、注册与使用](https://blog.csdn.net/lipengcn/article/details/51442005)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值