[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting from symbolic to matrix

From: theta
Subject: Converting from symbolic to matrix
Date: Sun, 21 Nov 2010 00:42:44 -0800 (PST)

I have a cell array defined as:
g =

  [1,1] =

  [1,2] =

  [1,3] =

  [1,4] =


After substituting particular values if x1,x2,x3,x4 using subs() I got gk
gk =

  [1,1] =

  [1,2] =

  [1,3] =

  [1,4] =


Firstly, how do I convert the 2nd and 3rd index values to real values. Tha
imaginary part just comes from nowhere. All my calculations are in real

Secondly, how do I convert this cell array gk into a matrix to perform
matrix multiplication. Every time I try to assign one of these elements into
an array I get an error saying wrong type `ex' - What does this mean and
what is its workaround. 

I would be grateful for any help.
View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]