From: Walter Roberson on
Steven Lord wrote:
> "Andrew " <bolka.a(a)verizon.net> wrote in message
> news:i0fhul$7fq$1(a)fred.mathworks.com...
>> I'm trying to simply plot a 215x7 matrix. It should be a plot with 7
>> bands but I am getting six and can't figure out why. Here's my code:
>>
>> for i=1:215
>> for i=1:7
>> new(i,j)=i*j
>> end
>> end
>> surface(new')
>>
>> Thanks in advance for any help
>
> http://en.wikipedia.org/wiki/Off-by-one_error#Fencepost_error

If one examines the Algorithms section of the surf() documentation, one
can see that surf() normally produces (N-1)x(M-1) faces from an NxM
matrix. The documentation for surface() is not specific about how the
surface faces are created but makes reference to the surf()
documentation, implying that it would probably be the same.