Can I change block into block library ?

I would like to convert existing simulink blocks into libraries. Is there a MATLAB command line for this?

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 23 de Mzo. de 2012
You need to create a Library model and then copy your blocks into it.
For example:
>> new_system('myLibrary', 'Library');
>> open_system('myLibrary');
>> add_block('path/to/existing/block1', 'myLibrary/blockName1');
>> add_block('path/to/existing/block2', 'myLibrary/blockName2');
>> save_system('myLibrary');
>> close_system('myLibrary');

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 23 de Mzo. de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by