matlab的类似应用,免费的octave

[复制链接]
1573|3
 楼主| huangxz 发表于 2016-12-1 17:58 | 显示全部楼层 |阅读模式
熟悉linux的同学不妨试试,开源软件,语法跟matlab基本兼容.
在国外有大量的学生在使用,希望在国内能推广开来
gaoyang9992006 发表于 2017-2-28 19:56 | 显示全部楼层
Octave是一种高层解释类编程语言,旨在解决线性和非线性的数值计算问题。Octave为GNU项目下的开源软件,早期版本为命令行交互方式,4.0.0版本发布基于QT编写的GUI交互界面。Octave语法与Matlab语法非常接近,可以很容易的将matlab程序移植到Octave。同时与C++,QT等接口较Matlab更加方便
gaoyang9992006 发表于 2017-2-28 19:57 | 显示全部楼层
本帖最后由 gaoyang9992006 于 2017-2-28 19:59 编辑

Syntax Examples
The Octave syntax is largely compatible with Matlab. The Octave interpreter can be run in GUI mode, as a console, or invoked as part of a shell script. More Octave examples can be found in the wiki.
  1. b = [4; 9; 2] # Column vector
  2. A = [ 3 4 5;
  3.       1 3 1;
  4.       3 5 9 ]
  5. x = A \ b     # Solve the system Ax = b

Solve systems of equations with linear algebra operations on vectors and matrices.
  1. x = -10:0.1:10; # Create an evenly-spaced vector from -10..10
  2. y = sin (x);    # y is also a vector
  3. plot (x, y);
  4. title ("Simple 2-D Plot");
  5. xlabel ("x");
  6. ylabel ("sin (x)");


gaoyang9992006 发表于 2017-2-28 20:01 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

177

主题

4937

帖子

11

粉丝
快速回复 在线客服 返回列表 返回顶部