Hey hello... Try doing this way.. first connect your LEGO EV3 to wifi through NETGEAR, then go to brick settings>> Brick Info(very bottom)>> IP address (also u can get many info) >> ID
note down the "IP address" and "ID"
now try wirting this code to connect to wifi through matlab
mylego = legoev3('wifi','192.168.0.124','001653497c86')
and my ip address is "192.168.0.124" my LEGO ID is "001653497c86"
This should work, it works for me :)