5.0

5.0 | 1 rating Rate this file 11 Downloads (last 30 days) File Size: 1.78 KB File ID: #24432

IPV4 address Validation

by Shameemraj Nadaf

 

13 Jun 2009 (Updated 17 Jun 2009)

A function which Validates given IPV4address.

| Watch this File

File Information
Description

A valid IPV4 address is having a format xxx.xxx.xxx.xxx where xxx is having range from 0 to 255. In order to evaluate whether a IP address is Valid or not pass a string to this function containing the IP address you want to Validate . This function returns a value 1 if success else 0 . If any other matlab data types apart from string type are passed to this function then also it returns a value 0. Hope this function will be useful .

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
16 Jun 2009 Adrian

Looks good - it is pretty much self-explanatory when you say that the input format is 'xxx.xxx.xxx.xxx', but since IPv6 addresses are beginning to be deployed, maybe add into your description that this is for IPv4 addresses only.

Please login to add a comment or rating.
Updates
17 Jun 2009

Previously described as just IP address validation but its actually IPV4 address validation

Tag Activity for this File
Tag Applied By Date/Time
gui tools Shameemraj Nadaf 15 Jun 2009 10:41:57
gui Shameemraj Nadaf 15 Jun 2009 10:41:57

Contact us at files@mathworks.com