// Create a 3x3 FloatMatrix A := cmat.NewFloatMatrix([][]float64{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}) // Extract the 2x2 sub-matrix: B := A.SubMatrix(1, 1, 2, 2) // B is now a new FloatMatrix with values: //[[5 6] // [8 9]] // Extract the 1x3 sub-matrix: C := A.SubMatrix(0, 0, 0, 2) // C is now a new FloatMatrix with values: //[[1 2 3]]In these examples, we create a new `FloatMatrix` object `A` with dimensions of 3x3. We then use the `SubMatrix()` method to extract sub-matrices `B` and `C` from `A`. The first argument specifies the minimum row index, the second specifies the minimum column index, the third specifies the maximum row index, and the fourth specifies the maximum column index. In conclusion, the `FloatMatrix.SubMatrix()` method is part of the `github.com/hrautila/cmat` Go library package, which is used for matrix operations. This method enables users to extract a sub-matrix from a given matrix based on specified row and column indices.