Change component size in system composer

Aidin Esmkhani · Mar 16, 2023 · 2K views
Question
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 PhD Expert
Answered Aug 23, 2026
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]

 

Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!