如何在八度中声明符号矩阵? [英] How do I declare a symbolic matrix in Octave?
本文介绍了如何在八度中声明符号矩阵?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在MatLab中,您可以轻松声明符号:
In MatLab, you can declare symbols pretty easily:
syms a,b
mat = [a,b]
但是,当我尝试在Octave中复制此错误时,出现错误.这是我正在使用的代码:
I'm getting an error, however, when I try to replicate this in Octave. This is the code I'm using:
> symbols
> a = sym("a")
a =
a
> b = sym("b")
b =
b
> mat = [a,b]
error: octave_base_value::resize (): wrong type argument `ex'
error: octave_base_value::resize (): wrong type argument `<unknown type>'
octave-3.2.3.exe:4:C:\Octave\3.2.3_gcc-4.4.0\bin
如何在八度中声明符号矩阵?
推荐答案
It looks like you might need the symbolic toolbox package, reference here.
这篇关于如何在八度中声明符号矩阵?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文