前言
以前学过m语言,现在转向linux系统,不便使用MATLAB,而且有license问题,Octave是开源软件,编程语言与matlab通用,搞起来!!!!
1. 安装 octave
sudo apt update
sudo apt install octave
# 配置文件在/home/**/.config/octave/qt-settings
# 安装优化依赖包,出现错误
pkg install -forge optim
warning: creating installation directory /home/cwg/octave
warning: called from
install at line 30 column 5
pkg at line 441 column 9
error: the following dependencies were unsatisfied:
optim needs struct >= 1.0.12
optim needs statistics >= 1.4.0
# 需要安装optim依赖
pkg install -forge struct #成功
pkg install -forge statistics #报错,待解决,
error: the following dependencies were unsatisfied:
statistics needs octave >= 7.2.0
# 要5.2.0,可是通过 apt 安装的最新版是 5.2.0
文章讲述了作者从使用MATLAB转向开源替代品Octave的过程。在Linux环境下,作者通过`apt`安装了Octave,但在安装优化和统计依赖包时遇到问题。成功安装了结构包(struct),但统计包(statistics)因需要更高版本的Octave(需要7.2.0以上,而系统最高为5.2.0)而未解决。
823





