Files
mql5-skills/skills/mql5/references/docs/06-matrix/0366-matrix-matrix-characteristics-matrix-rows.md
T
2026-06-23 21:47:51 +08:00

33 lines
444 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Rows
Return the number of rows in a matrix.
```
ulong matrix::Rows()
```
Return Value
Integer.
Example
```
  matrix m= {{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}};
  m.Reshape(3, 4);
  Print("matrix m \n" , m);
  Print("m.Rows()=", m.Rows());
  Print("m.Cols()=", m.Cols());
 
  /*
   matrix m 
   [[1,2,3,4]
    [5,6,7,8]
    [9,10,11,12]]
   m.Rows()=3
   m.Cols()=4
  */
```