How do I declare a symbolic matrix in Octave?
问题 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: Would this help ? It