Saturation and Quantizer block in Simulink

Hello Dears,
I want to run this simulink in matlab 2015b , but as I run it, this error appears:
"The specified MATLAB File 'quantize' in 'EVAL_SIM/Quantizer' is not a valid Level 1 S-Function. The number of input and/or output arguments is not valid. A likely cause for this error is that the name of a level-2 MATLAB S-function has been specified in this block (which supports only level-1 MATLAB S-functions). Use the 'Level-2 MATLAB S-Function' block from the Simulink library
The specified MATLAB File 'quantize' in 'EVAL_SIM/Quantizer ' is not a valid Level 1 S-Function. The number of input and/or output arguments is not valid. A likely cause for this error is that the name of a level-2 MATLAB S-function has been specified in this block (which supports only level-1 MATLAB S-functions). Use the 'Level-2 MATLAB S-Function' block from the Simulink library"
However, this Simulimk run in matlab 2007.But the speed of the analysis was very low.

1 Comment

I got the same problem. Also, in the lower version, like 2007, it does not run sim_inp. could you please direct me to the solution if you have run the code successfully?

Sign in to comment.

Answers (1)

Hola, amigo. Tuve el mismo problema, y la única manera que encontré para poder ejecutar todos los archivos correctamente, es instalar una máquina virtual con Windows 95 y Matlab 5.3.1. Sólo así me fue posible ejecutar todas las rutinas de la carpeta. Te recomiendo que descargues una máquina virtual que ya tenga el Windows95 instalado, yo encontré en Reddit una máquina virtual con el SO ya instalado, la cual pude abrir con VirtualBox (ten cuidado con los virus). Desde MathWorks puedes descargar la versión 5.3.1 de Matlab, pero debes solicitar tu Personal License Passcode (PLP).
Para pasar los archivos a ese sistema operativo, puedes crear una unidad de disco con VirtualBox para que compartas archivos con la máquina virtual.
Esto solo te sirve para que puedas estudiar y entender lo que hace el programa original, pero te recomiendo que cuando lo entiendas, hagas tu propia versión en el Matlab más reciente. Espero te pueda servir de algo.
Saludos.

Asked:

on 23 Nov 2021

Answered:

on 30 Jul 2022

Community Treasure Hunt

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

Start Hunting!