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]

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!