Undefined operator '^' for input arguments of type 'cell'.

c0=1;
c1=2;
c3=4;
A={((c0/2)-(c1*c2/6)+(c2^3/27))-[(c0/2)-(c1*c2/6)+((c2^3/27)^2)+(c1/3-c2^2)^3]^1/2}^1/3;
i am getting the above error

1 comentario

Adam
Adam el 19 de Jul. de 2016
Why are you using a cell array to do simple maths in?

Iniciar sesión para comentar.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 19 de Jul. de 2016
Editada: Azzi Abdelmalek el 19 de Jul. de 2016
c0=1;
c1=2;
c2=5
c3=4;
A=(((c0/2)-(c1*c2/6)+(c2^3/27))-[(c0/2)-(c1*c2/6)+((c2^3/27)^2)+(c1/3-c2^2)^3]^1/2)^1/3;
You can't write
a= {2+3}^3
write
a=(2+3)^3

Más respuestas (0)

Categorías

Más información sobre Signal Processing Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Jul. de 2016

Editada:

el 19 de Jul. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by