In Matlab, we sometimes need to delete a row or a column in the matrix, which can be deleted by the following methods:

a = [ 1 2 3 4 5 6 7 8 9]; a(2,:) = []; % Delete row 2 a(:,2) = []; % Delete col 2

### Read More:

- matlab Error Subscript indices must either be real positive integers or logicals.
- Empty Matrices, Scalars, and Vectors
- After the crack is installed correctly, open matlab r2018a and report the error license manager error-8
- How to use Latex to Write Matrices
- How to use matlab xlswrite
- Matlab matrix transpose function
- After matlab2018a is successfully installed, a licensing error appears when it is opened: – 8523
- The sparse matrix of R language is too large to be used as.matrix
- Matlab 2018a cracked the licensing error: – 8523
- 【R】【unimplemented type ‘list’ in ‘orderVector1’】
- Blas loading error in MATLAB, unable to find the specified module
- After the successful installation of matlab2018, the opening will show the licensing error: – 8523 solution
- How to Solve differential equations with MATLAB
- After matlab2017b is activated, open the error reporting license manager error – 8
- Solutions to several VTK compilation errors (vtk5.8 + VS2010)
- How can IntelliJ idea completely delete a project
- Error: The size of the connection buffer (131072) was not large enough
- Debugging mode of MATLAB: dbstop if error
- The usage of Matlab function downsample
- The method of constructing even order magic square (n = 4 * m)