Hi,
firtst of all you need the Industrial communication Toolbox, to use all the OPCUA functionality.
Second you need Compiler SDK or similar to create executables from your Matlab code
Third you need a Matlab runtime on the target system matching with your IDE on your development system.
With all of this you are able to crate OPCUA applications running on a different machine.
I have done it several times and it is no problem at all.
Best Thomas