Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
This function will take a [1xn] or [mx1] vector and normalize it to a unit vector length.
To use this function [vectorOut] = fcn_createUnitVector(vectorIn)
Error checking is performed to test for NaN values in the output, and a square root of the sum of the squares == 1
This function will take column or row vectors and output in said format.
Citation pour cette source
James West (2026). Take a vector and convert it to a unit vector (normalize) (https://fr.mathworks.com/matlabcentral/fileexchange/28605-take-a-vector-and-convert-it-to-a-unit-vector-normalize), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
A inspiré : Normalize N-D Vectors in Single Matrix or N Component Matrices
Informations générales
- Version 1.3.0.0 (1,58 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.3.0.0 | Added error checking
|
||
| 1.2.0.0 | Changed the code to operate in n dimensions.
|
||
| 1.0.0.0 |
