Matrices with symbolic elements

The command sym constructs symbolic numbers, variables and objects. Read what help sym tells about this command. With the command syms multiple symbolic objects can be constructed at the same time. In this case, the names of the objects have to start with a letter. Symbolic objects can be used as matrix elements.
>> syms a b
>> A = [1 2 a
        3 b 4
        1 2 3]}
A =
    [ 1 2 a]
    [ 3 b 4]
    [ 1 2 3]



Previous      Next      Up      Contents


Esteur 2010-03-22