Italiano - English

How to convert from .M to .MDL symulink model

Translation for this document is not available or is not complete,
if you are intrested to receive information please write to

Conversion of Simulink model files for compatibility with older versions. How to convert from .M to .MDL symulink model

Semplice programma Matlab per la conversione batch di piu' modelli contemporaneamente.

  1.  
  2. % array of the model filenames names to convert (in active path)
  3. source = {'scamcell','scampid','scamrele','scamcasc'};
  4.  
  5. %destination folder for converted mdl files
  6. outdir = '.\\mdl\\';
  7.  
  8. for k=1:length(source)
  9.  
  10. % load the source models
  11. load_system(source{k});
  12.  
  13. % convet and save the models
  14. save_system(source{k}, strcat(outdir,source{k}) );
  15.  
  16. close_system(source{k});
  17. end;
  18.  
Vote this page:

0 Comments:

Leave your comment:

Note:
  • Your email email will not be visible or used in any way, and is not required
  • Please keep comments relevant
  • Any content deemed inappropriate or offensive may be edited and/or deleted
  • HTML code is not allowed. Please use BBCode to format your text
    [b]bold[/b], [u]underline[/u], [i]italic[/i], [code]code[/code]
The coding examples presented here are for illustration purposes only. The author takes no responsibility for end-user use
This work is property of Pk Lab. You can use it for free but you must retain author's copyright.