spdiags command not working
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
nandine
el 3 de Mayo de 2017
Comentada: nandine
el 3 de Mayo de 2017
>> 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.
0 comentarios
Respuesta aceptada
Steven Lord
el 3 de Mayo de 2017
Remove the curly braces from around the 2 at the end of your statement.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Sparse Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!