Zero Out Smalls
by Zhigang Xu
23 May 2008
(Updated 07 Jul 2008)
To zero out the small elements whose absolute values are smaller than a given criterion.
|
Watch this File
|
| File Information |
| Description |
To zero out the small elements in A whose absolute values are smaller than a given criterion, specified by small_cri. By default, small_cri=eps. Due to operations on floating point numbers, many quantities should be zero mathematically but are actually not. If these "fuzzy" quantities are carried over in further calculations, erroneous results may arise. They will also unnecessarily increase the number of non-zero elements in sparse matrices and slow down the calculations. |
| MATLAB release |
MATLAB 7.6 (R2008a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 06 Jun 2008 |
Jos x@y.z
|
|
|
| 07 Jun 2008 |
Zhigang Xu
|
|
|
| 11 Jun 2008 |
Jos x@y.z
|
|
|
| 11 Jun 2008 |
Zhigang Xu
|
|
|
| Updates |
| 07 Jul 2008 |
The help message is improved. |
|
Contact us at files@mathworks.com