MATLAB: Problem with Vercat error

vercat

Hello, Why i have vercat error? They are the same , but i have and error. Please view the image. Thanks
<<
>>

Best Answer

They’re not the same:
B = [82:246, 117:351];
RowA = 82;
ColumnA = 117;
B_elements = [RowA 246; ColumnA 351]
B_elements_range = diff(B_elements,[],2)
B_elements =
82 246
117 351
B_elements_range =
164
234