Sorry I only checked the second answer. Using the correct scope parameter works
BUS_NAME_MATLABStruct = Simulink.Bus.createMATLABStruct(obj, pStruct, dims, scope);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!