Escarpments 0 Buttes 0 Mountains 0 15 7 11 2 11 5 7 1 14 13 4 9 13 14 14 10 2 3 15 2 11 9 Q37215433

Escarpments = 0;
Buttes = 0;
Mountains = 0;
A =[15,7,11,2,11,5,7,1,14,13,4,9,13,14,14,10,2,3,15,2,11,9,15,8,11,1,11,15,10,10,3,10,3,3,7,9,2,5,10,6,7,14,15,11,4,11,7,2,10,8;
15,4,4,14,2,3,10,3,7,12,12,14,3,12,9,3,11,1,11,9,4,4,13,14,9,13,13,5,9,10,10,14,9,12,6,12,13,7,7,13,6,3,1,7,1,11,4,13,3,10;
4,13,7,8,11,2,2,3,10,11,3,7,6,4,9,14,6,9,11,15,7,4,13,1,4,9,5,6,12,12,8,6,1,5,9,1,8,1,6,3,3,10,12,2,8,10,15,13,6,3;
7,1,13,4,10,3,12,7,2,4,10,1,14,8,13,6,11,8,2,7,14,4,4,15,12,1,2,7,14,7,5,13,13,7,10,7,5,11,8,5,4,2,7,8,12,3,7,3,11,10;
4,14,12,3,2,14,15,1,12,9,4,2,10,7,9,5,7,14,12,1,9,10,13,11,15,5,4,5,5,13,4,12,7,7,15,2,8,14,12,6,14,12,4,15,13,4,15,7,12,4;
13,10,6,8,14,10,14,10,2,10,8,7,10,8,13,1,13,8,12,4,15,14,7,4,2,8,2,10,6,10,4,4,15,1,2,7,4,10,13,8,6,5,5,3,11,5,1,14,5,15;
12,4,4,14,11,5,1,13,3,5,9,8,2,6,7,7,7,8,5,6,4,3,11,2,7,8,6,4,3,14,9,7,10,8,2,10,12,1,6,5,15,8,4,4,5,8,2,4,12,10;
14,11,9,9,12,2,1,2,10,2,9,4,2,15,12,10,7,3,14,9,4,13,10,14,5,11,12,2,11,13,10,5,14,13,14,3,5,7,12,8,6,11,14,5,9,5,13,13,2,13;
5,5,9,10,2,5,8,15,7,7,12,6,1,15,8,9,11,2,2,12,3,14,4,4,3,5,8,2,6,8,9,11,4,14,2,12,7,1,12,3,10,4,13,9,6,14,3,11,6,2;
10,14,2,11,7,2,8,11,9,5,8,1,5,1,8,13,6,13,7,3,9,3,1,12,7,3,2,10,4,4,3,11,3,2,15,2,15,10,4,13,4,13,1,11,5,7,6,8,7,1;
14,4,3,4,4,11,14,3,12,2,14,3,2,4,9,9,14,11,15,3,2,2,8,13,2,12,5,6,2,10,5,13,6,10,12,10,9,14,12,12,11,2,7,15,13,10,4,7,1,6;
15,14,2,9,10,6,12,10,10,5,5,15,11,1,4,6,1,7,3,7,1,7,2,4,6,13,4,8,8,12,7,13,9,15,6,6,7,11,10,4,14,4,2,4,7,1,6,8,5,8;
3,4,11,8,3,12,12,14,10,2,12,8,12,12,3,10,13,7,5,6,14,15,12,3,8,11,3,5,11,7,9,2,9,13,14,15,4,1,13,13,1,8,3,6,7,11,15,13,4,5;
4,5,12,5,7,10,13,2,2,6,14,2,8,8,11,4,12,10,12,15,7,12,10,4,13,12,13,1,8,13,11,1,11,5,5,6,1,10,5,3,11,15,15,12,14,11,10,14,11,9;
9,9,2,6,11,2,8,5,6,9,8,5,11,5,4,1,5,6,7,10,2,9,7,4,15,13,14,1,14,15,3,2,12,10,11,6,7,10,5,2,13,13,12,2,2,12,3,11,1,11;
15,3,14,13,2,14,4,8,6,5,2,13,2,4,15,13,6,6,7,15,9,15,9,5,10,10,1,13,6,1,12,14,15,7,8,12,4,7,12,5,4,3,11,11,13,9,5,8,2,3;
1,6,9,10,7,2,5,8,11,4,9,4,6,10,14,1,2,10,10,13,2,5,7,10,7,5,14,6,9,11,12,11,3,3,6,7,2,6,3,11,10,3,3,3,5,11,3,5,5,11;
4,6,11,2,7,4,2,2,10,11,2,8,4,11,1,7,10,11,9,15,14,3,5,6,6,8,1,8,12,9,15,6,1,1,1,6,2,3,2,6,14,14,9,13,3,13,3,6,3,11;
8,3,11,3,1,1,6,7,1,4,1,1,7,3,6,3,12,2,14,4,8,8,3,1,10,10,9,12,15,3,15,12,1,3,3,3,2,12,3,15,3,14,14,4,2,6,7,5,7,4;
11,13,6,8,9,6,15,3,1,11,10,11,4,6,7,10,14,3,15,11,3,12,5,2,7,9,5,4,5,10,9,2,7,2,2,4,6,14,5,2,11,15,12,12,3,6,14,5,3,9;
4,14,15,4,7,13,10,12,1,2,7,2,1,7,4,7,3,14,12,3,7,14,4,12,12,2,11,11,10,6,15,9,8,6,14,6,9,6,1,15,3,13,2,13,2,9,1,13,4,15;
6,3,1,13,6,3,6,9,12,14,12,15,8,5,10,8,1,6,6,1,5,11,15,13,2,4,2,8,5,1,9,4,15,13,13,14,12,13,4,13,6,5,8,4,15,2,12,4,13,8;
9,13,14,14,11,11,1,6,5,12,5,5,7,3,4,3,15,1,10,12,6,10,13,5,13,15,9,1,7,12,10,11,9,13,2,8,12,13,6,4,6,12,15,5,14,1,9,9,8,5;
8,6,11,1,3,3,12,7,12,9,8,11,4,5,5,3,7,15,10,8,3,11,6,12,13,5,15,7,9,9,2,14,15,13,2,12,12,12,8,1,13,10,11,15,9,2,1,14,12,12;
6,14,13,15,1,9,14,12,5,1,1,15,1,2,3,8,5,7,14,12,1,9,8,1,10,13,7,1,9,15,4,12,4,7,10,5,5,1,5,13,8,5,1,7,14,13,9,11,4,5;
10,15,5,8,4,11,13,11,9,6,13,6,11,4,15,7,1,2,10,8,6,6,6,7,1,5,11,3,6,12,6,6,10,2,13,7,10,7,1,11,10,3,5,10,13,6,6,5,6,14;
11,15,13,7,3,11,3,1,14,6,12,9,11,11,10,6,14,4,4,13,8,11,9,15,11,11,9,3,12,2,8,9,6,9,12,7,1,11,10,5,11,5,11,4,15,3,15,5,6,2;
2,11,11,3,5,9,2,8,4,15,10,13,2,5,9,3,11,3,4,11,3,11,5,14,13,6,2,15,14,6,9,2,6,8,1,12,13,2,8,1,11,12,5,8,15,3,14,6,13,9;
15,12,7,13,15,2,12,12,3,3,3,6,15,12,10,7,3,14,2,4,5,2,1,1,13,10,7,1,8,14,1,8,1,15,13,14,13,8,6,5,3,13,7,10,6,13,13,7,15,8;
9,8,13,3,8,11,12,5,14,1,15,2,6,12,7,4,2,10,8,13,10,14,4,13,14,2,6,10,2,8,4,4,12,12,10,2,9,7,5,10,7,12,11,13,5,3,5,14,14,7;
14,1,10,3,2,13,14,11,3,12,6,15,10,13,14,9,2,10,7,15,8,3,7,11,13,1,11,15,14,4,15,9,12,14,10,14,8,8,5,3,6,3,11,5,14,11,8,2,5,1;
9,7,4,1,4,3,10,8,10,13,9,7,4,4,12,12,7,8,3,15,4,3,13,10,14,11,8,12,13,1,5,2,8,10,13,14,1,9,2,8,10,5,2,11,2,2,6,15,4,6;
12,15,14,15,7,13,15,1,15,15,7,12,7,1,1,8,14,7,4,11,4,1,1,7,6,5,1,3,3,5,13,15,13,7,8,11,2,3,13,2,5,5,15,10,5,10,9,8,11,6;
12,11,1,11,14,14,8,2,7,7,11,9,2,13,6,7,6,12,5,9,2,10,7,2,5,14,1,8,15,14,6,2,1,3,14,12,15,7,14,8,1,11,6,6,13,8,7,8,15,7;
9,13,6,10,7,13,15,3,6,7,12,13,5,13,11,5,11,12,14,11,7,11,1,4,12,6,2,15,12,10,12,8,4,8,8,15,7,4,3,10,3,5,1,2,5,3,11,4,15,8;
6,2,10,13,7,14,7,2,15,2,6,15,8,15,12,8,3,7,13,12,3,3,3,13,13,14,6,5,10,13,2,12,4,10,6,13,7,4,1,5,12,11,7,4,4,7,7,7,10,12;
8,14,4,4,2,11,5,4,13,6,7,6,7,3,9,7,1,3,6,6,5,1,15,3,4,10,6,8,14,9,4,9,11,8,2,12,9,9,15,2,5,9,13,10,6,13,4,12,3,7;
12,1,7,3,13,2,12,9,14,6,1,3,6,4,11,11,8,9,1,10,1,6,10,9,1,2,1,8,11,7,11,3,14,4,11,6,10,13,3,14,2,1,7,12,11,8,3,10,5,2;
13,14,3,9,5,2,13,1,1,1,10,9,13,11,8,3,2,15,7,4,1,5,13,2,3,15,5,14,13,15,3,10,13,12,6,1,15,14,15,2,4,12,4,11,5,15,14,14,15,4;
1,15,13,2,1,11,12,15,7,2,6,1,1,14,2,5,5,1,2,9,12,7,9,10,9,14,11,6,12,10,9,3,11,4,7,6,3,5,2,13,10,11,6,15,10,3,11,7,13,13;
14,3,4,14,11,8,15,9,13,14,2,2,9,4,10,8,1,10,10,6,2,2,1,14,2,1,8,5,12,11,1,13,7,15,15,15,3,13,15,11,1,3,7,7,4,14,14,11,6,11;
3,2,1,6,9,11,15,10,9,12,14,15,2,12,11,13,12,7,10,4,6,6,10,8,10,4,4,7,10,14,9,9,4,8,11,2,2,15,5,4,2,9,15,7,10,14,10,12,5,4;
14,2,10,1,12,3,6,6,4,8,7,11,1,11,10,8,10,12,7,2,15,4,8,5,10,6,1,5,8,10,14,11,14,7,11,6,13,11,9,4,10,8,14,14,9,8,11,1,15,8;
7,12,11,15,5,12,1,7,15,12,7,7,15,3,15,4,10,5,14,12,1,4,1,1,3,12,3,2,8,10,12,9,8,8,6,13,14,11,13,7,14,12,5,2,3,5,14,4,12,5;
1,9,1,3,12,11,1,4,2,7,5,1,2,8,4,8,2,13,12,7,14,3,13,8,10,12,2,13,12,3,8,6,8,10,8,10,8,1,1,8,15,10,4,12,11,2,5,10,9,12;
7,9,6,11,10,3,9,1,8,14,4,10,15,5,2,7,2,3,5,15,11,15,5,3,13,10,11,1,8,8,12,3,1,7,1,6,11,10,7,14,8,13,10,9,13,6,5,12,8,6;
12,6,10,2,7,12,3,8,3,8,7,4,2,14,5,3,5,14,9,12,11,14,2,1,9,11,12,2,14,8,2,15,13,14,1,15,10,6,5,11,11,7,1,1,10,6,1,2,11,8;
5,8,8,11,6,11,1,12,14,8,7,5,9,5,8,15,15,7,9,5,13,2,8,12,12,10,4,5,3,3,14,4,8,5,4,2,12,2,3,10,15,15,7,15,14,2,5,11,6,15;
3,7,9,14,13,1,8,4,2,4,13,11,13,15,13,4,5,5,8,3,8,10,12,10,11,9,14,12,9,4,6,3,3,14,7,7,13,1,11,13,8,11,3,9,1,8,9,4,10,4;
9,1,1,9,9,15,3,12,4,13,5,8,2,8,15,7,4,7,15,1,10,6,6,11,3,11,1,2,13,8,2,12,14,1,14,8,3,3,3,12,13,10,6,4,14,8,2,5,4,4];
for row = 1:50
for col = 1:47
if (A(row,col) >= 1 && A(row,col+1) > A(row,col)&& A(row,col+2) > A(row, col+1) …
&& A(row,col+3) > A(row,col+2) && A(row,col+4)< A(row,col+3));
Escarpments = Escarpments + 1;
end
if (A(row,col) == 10 && A(row,col+1) <=8 &&A(row,col-1) <=8 && A(row+1,col) <=8 &&…
A(row-1,col) <=8 && A(row-1,col-1) <=8 &&A(row+1,col+1) <=8 && …
A(row-1,col+1) <=8 && A(row+1,col-1) <=8);
Buttes = Buttes + 1;
end
end
end
Escarpments
Buttes

output

Subscript indices must either be real positive integers orlogicals.

Error in Untitled (line 62)
A(row-1,col) <=8 && A(row-1,col-1) <=8 &&A(row+1,col+1) <=8 && …

How do I fix the error???


Answer


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.