isIp4Address and mustBeIp4Address
Versión 1.0.0 (1,35 KB) por
Stefan Schuberth
small functions to check if a string is a valid ip address
small functions to check if a string is a valid ip address
isIp4Address: input is a string or char array. return value is boolean.
mustBeIp4Address: gives back true or gives an error. Like other property/function validators.
examples:
isIp4Address('123.55.2.1') => true
isIp4Address('123.455.2.1') => false
isIp4Address('hello world') => false
isIp4Address('') => false
mustBeIp4Address ... calls isIp4Address => same results, but throwing error
Citar como
Stefan Schuberth (2024). isIp4Address and mustBeIp4Address (https://www.mathworks.com/matlabcentral/fileexchange/123825-isip4address-and-mustbeip4address), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2022b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |