how to store in array a solution of a symbolic expression?



Hi everybody

my problem looks like so easy but I haven't found a solution yet:

how to store in an array a real value found having used 'solve'
function over a symbolic expression? In storing it matlab gives back
the following error:

??? In an assignment A(I) = B, the number of elements in B and I
must be the same.


e.g.:

syms N;
array = zeros(1,10)

expr=f(N);
value = solve(expr);

array(1)=value;


Thanks in advance


Pietro

.



Relevant Pages

  • Re: Fast array I/O
    ... If you are still using the array, don't store it. ... > Two objects is not wasteful, you'll create a lot more than two in any ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Array table
    ... would be to store the information in a 2d array: ... string[,] people; ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: using array in php
    ... caculate them then store them in array and sort them ... Prev by Date: ...
    (comp.lang.php)
  • Re: How to compute the number of adjacent edges for each vertex in a polyhedral mesh without creatin
    ... what I want to do is to use an array to store the adjacent ... Xinlong ... Prev by Date: ...
    (comp.graphics.algorithms)
  • Re: Finding the nearest match without reusing results
    ... comparing an array with a value generates an array of Trues and ... Any diff with wrong State or with used Store is implicitly zeroed out. ... Each must be larger than the absolute value of the maximum Sales ... go.....it just needs to return the closest match. ...
    (microsoft.public.excel.programming)