that problem occurs if wmic is not found. Try following steps
1. right click on my computer and go to properties.
2. click on advance system setting and open environment variable
3. Create new system variable name "path" and variable path "C:\Windows\System32\wbem;"
4. Restart your system and retry the Raspberry Pi settings from MATLAB-->manage add-on option