From: Abhishek on
Hi
I have eq1 as <1*11cell>of class char and Out1 as<1*12cell> of class char
I am using
S=solve(eq1{:},Out1{2:end});
which gives me the error
??? Function 'ne' is not defined for values of class 'cell'.

Error in ==> maple at 77
if isempty(statement) | statement(end) ~= ';'

Error in ==> solve at 75
[t,stat] = maple(v);
Please tell me a solution to this problem
>thank you
From: us on
On Jul 29, 3:20 pm, "Abhishek " <abhi14...(a)yahoo.com> wrote:
> Hi
> I have eq1 as <1*11cell>of class char and Out1 as<1*12cell> of class char
> I am using
> S=solve(eq1{:},Out1{2:end});
> which gives me the error
> ??? Function 'ne' is not defined for values of class 'cell'.
>
> Error in ==> maple at 77
> if isempty(statement) | statement(end) ~= ';'
>
> Error in ==> solve at 75
>       [t,stat] = maple(v);
> Please tell me a solution to this problem
>
>
>
> >thank you- Hide quoted text -
>
> - Show quoted text -

hardly - without knowledge of the actual content of your vars...

us
From: Abhishek on
Out1 =
'z' 'x' 'o' 'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'T'
>> class(ans)
ans =
char
>> eq1
eq1 =
Columns 1 through 7

{1x1 cell} {1x1 cell} {1x1 cell} {1x1 cell} {1x1 cell} {1x1 cell} {1x1 cell}

Columns 8 through 11

{1x1 cell} {1x1 cell} {1x1 cell} {1x1 cell}
>> class(ans)
ans =
char
where eq1
>> eq1{1}
ans =
''A*p+B*u''
>> eq1{2}
ans =
''y*p+D*q+E*r+F*s''
etc..
now i think nothing is hidden ...is it ?
can you tell the solution now?
From: Walter Roberson on
Abhishek wrote:
> Hi
> I have eq1 as <1*11cell>of class char and Out1 as<1*12cell> of class char
> I am using S=solve(eq1{:},Out1{2:end});
> which gives me the error
> ??? Function 'ne' is not defined for values of class 'cell'.
>
> Error in ==> maple at 77
> if isempty(statement) | statement(end) ~= ';'
>
> Error in ==> solve at 75
> [t,stat] = maple(v);
> Please tell me a solution to this problem
>> thank you

Out1 is not a cell of strings: it is a cell of cells.

Asking for the class of ans is misleading you: ans at that point is the
text being displayed on the line above, not the variable itself.
From: Abhishek on
Out1 is the cell array of cells .Does that causes this error ?
So tell me how to get out of it?
 |  Next  |  Last
Pages: 1 2
Prev: Uitreenode icon
Next: optimization using fminunc