tags:

views:

543

answers:

1

In MatLab, you can declare symbols pretty easily:

syms a,b
mat = [a,b]

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

How do you declare a symbolic matrix in octave?

+1  A: 

Would this help ?

It looks like you might need the symbolic toolbox package, reference here.

George Profenza

related questions