Problem with B size in spdiags

Hello, I'm trying to use a code that was in a paper, for creating a matrix:
d=spdiags(ones(t-2,1)*[1-2 1],[0:2],t-2,t);
Im getting the error:
For the syntax spdiags(B,d,m,n), the size of B must be min(m,n)-by-length(d).
t=200;

답변 (0개)

카테고리

도움말 센터File Exchange에서 Fit Postprocessing에 대해 자세히 알아보기

태그

질문:

2019년 6월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by