there‘s an error ,i can't deal with it,please give me a help

>> clear all,syms x; >> s=solve('(x+2)^x=2','x')
s =
0.69829942170241042826920133106081
>> xs=(s+2)^s ??? Error using ==> mupadmex Error in MuPAD command: Invalid left-hand side [_assign];
during evaluation of '(Dom::Matrix(Dom::ExpressionField()))::_power'
Error in ==> sym.sym>sym.mpower at 207 B = mupadmex('symobj::mpower',A.s,p.s);

2 Comments

Hi Tao, What version of MATLAB are you using?
I don't have any trouble with this in R2011b

Sign in to comment.

Answers (1)

variant of solution
syms x
s=solve((x+2).^x-2)
xs=(s+2).^s
use '.^'

2 Comments

thank you. but why use '.^'? i think it's not an array.
"my" MuPAD return variable 's' as matrix - array, please see: http://imageshack.us/photo/my-images/36/smtimes.png/

Sign in to comment.

Tags

Asked:

tao
on 7 Dec 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!