Change component size in system composer

Illustration
Aidin Esmkhani - 2023-03-16T10:23:06+00:00
Question: Change component size in system composer

How can I change a component size in MATLAB system composer by means of APIs (command line or MATLAB code) ?

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

Hi Aidin,
 
You can use System Composer native APIs for this to interact with your architecture model in an object-oriented manner:
 
 
architectureModel = systemcomposer.loadModel('MyArchitecture');
myComponent = lookup(architectureModel, Path='MyArchitecture/MyComponent')
myComponent.Position = [100 100 100 100]

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!