[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using symbol in matrix
From: |
Søren Hauberg |
Subject: |
Re: using symbol in matrix |
Date: |
Thu, 12 Nov 2009 16:52:23 +0100 |
tor, 12 11 2009 kl. 01:31 -0800, skrev zmyx:
> I'm trying to create a matrix of symbols but it doesn't work. Is this
> possible to do with Octave? If yes, how to do it?
>
> Here is how i tried and as you can see there are error messages.
>
> > y = sym("y")
> y =
>
> y
> octave-3.2.3.exe:3:D:\Octave\3.2.3_gcc4.4.0\bin
> > x = [y y]
> error: octave_base_value::resize (): wrong type argument `ex'
> error: octave_base_value::resize (): wrong type argument `<unknown type>'
Can't you just store then in a cell array, i.e.
x = {y, y};
?
Søren