https://se.mathworks.com/help/soc/ref/soc.sdk.hardware.removeprocessorcore.html
soc.sdk.Hardware.removeProcessorCore - Remove processor core from Hardware object - MATLAB
This MATLAB function removes the soc.sdk.ProcessorCore object with the Name property from the soc.sdk.Hardware object.
socsdkhardwareremoveprocessor