필터 지우기
필터 지우기

spdiags command not working

조회 수: 2 (최근 30일)
nandine
nandine 2017년 5월 3일
댓글: nandine 2017년 5월 3일
>> 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.

채택된 답변

Steven Lord
Steven Lord 2017년 5월 3일
Remove the curly braces from around the 2 at the end of your statement.
  댓글 수: 2
nandine
nandine 2017년 5월 3일
But than i get this error
nandine
nandine 2017년 5월 3일
Actually your suggestion worked! Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sparse Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by