Is it possible to put array index as zero in matlab?
조회 수: 117(최근 30일)
I have boundary value problem in heat transfer. My boundary point starts from 1. However due to the finite difference approximation of derivatives when applying equations at the boundaries the finite difference equation will encounter one point outside the boundary i.e. point zero. I specified the value of the point, however matlab shows error that matrix index should be positive and logical. Does that mean in matlab array index cannot start from zero? If yes, is there a workaround for this, so that I can avoid redefining by boundary points as 1 and restructuring my total program?