[~, bssid_cmdout] = system('netsh wlan show network mode=bssid');
tokens = compose("[^:]+: (?<%s>[^\\n]*)", ["NetworkType", "Authentication", "Encryption", "BSSID", "Signal", "RadioType", "Channel", "BasicRates", "OtherRates"]);
re = strjoin(["(?<=SSID \d+ : )(?<SSID>[^\n]*)", tokens], "");
ssids = regexp(bssid_cmdout, re, 'names');
signals = num2cell(str2double(extractBefore({ssids.Signal}, '%')));
[ssids.Signal] = signals{:};
channels = num2cell(str2double({ssids.Channel}));
[ssids.Channel] = channels{:};
3 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/495390-analyze-netsh-wlan-show-all-for-rssi-distance-and-location#comment_776085
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/495390-analyze-netsh-wlan-show-all-for-rssi-distance-and-location#comment_776085
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/495390-analyze-netsh-wlan-show-all-for-rssi-distance-and-location#comment_776184
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/495390-analyze-netsh-wlan-show-all-for-rssi-distance-and-location#comment_776184
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/495390-analyze-netsh-wlan-show-all-for-rssi-distance-and-location#comment_776515
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/495390-analyze-netsh-wlan-show-all-for-rssi-distance-and-location#comment_776515
Sign in to comment.