![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175277/image.jpeg)
Matlabs square(x) equivalent in Simulink? NOT x^2. square WAVE
67 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
As in title, is there a block which performs this operation in a simple way?
0 comentarios
Respuestas (2)
Rodney Tan
el 19 de Oct. de 2016
There is a Math Function block in Simulink -> Math Operation, where you can configure it to perform various math operation including the square function. I have screen capture it for your reference below.
Hope this answer your question.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175277/image.jpeg)
Rodney Tan
el 24 de Oct. de 2016
There is a Pulse Generator block in Simulink -> Source, where you can configure its magnitude, period and duty cycle to generates square wave as square(x) wave function. I have screen capture it for your reference below.
Hope this time I answer your question.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175333/image.jpeg)
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!