>> Dx=spdiags([e 2*e e], -1:1, Nx,Nx)/(dx)^{2}
Undefined operator '^' for input arguments of type 'cell'.
What is wrong with this line? cant figure it out.

 Respuesta aceptada

Steven Lord
Steven Lord el 3 de Mayo de 2017

0 votos

Remove the curly braces from around the 2 at the end of your statement.

2 comentarios

nandine
nandine el 3 de Mayo de 2017
But than i get this error
nandine
nandine el 3 de Mayo de 2017
Actually your suggestion worked! Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 3 de Mayo de 2017

Comentada:

el 3 de Mayo de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by