If you run a .NET command on a MATLAB® session started from a network drive, you could see a warning message. To resolve this problem, run the enableNETfromNetworkDrive.m file, from the matlabroot\toolbox\matlab\winfun\NET folder.
This file adds the following entry to the security policy on your machine to trust the dotnetcli assembly, which is the MATLAB interface to .NET module:
Creates a group named MathWorks_Zone with LocalIntranet permission.
Creates a dotnetcli subgroup within MathWorks_Zone.
Provides Full-Trust to the dotnetcli.dll strong name for access to the local intranet.
You must have administrative privileges to make changes to your configuration.