How to Use command to remove lines between physical models?
Mostrar comentarios más antiguos
Hi,
I want to use commands to delete this line, but 'delete_line' always results err, saying "Invalid Simulink object name: 'Battery_Cell6/1'."
Could anyone help me, pls?

3 comentarios
Sam Chak
el 4 de Jun. de 2025
Hi Ji, which line is "this line" that you want to delete? Your syntax like this?
delete_line('modelName', 'Battery_Cell6/1', 'Bat+/1');
Have you identified the source and destination ports of the Battey_Cell6 block?
季
el 9 de Jun. de 2025
季
el 9 de Jun. de 2025
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programmatic Model Editing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
