MATLAB: How to convert a sine wave into a square wave using Simulink signsimulinksinesquarewave I am using Simulink and I want to convert a sine wave into a square wave. Best Answer To convert a sine wave into square wave using Simulink, you can use the 'Sign' block within 'Math Operations' Library.Another way is by implementing the following equation in Simulink:-y = sin(t) + sin(3*t)/3 + sin(5*t)/5 + sin(7*t)/7 + sin(9*t)/9The model describing the equation can be viewed in the attachment. Related SolutionsMATLAB: Sine Wave The answer is either "You cannot", or else "sin(x)", depending what your question is intended to mean.If you are trying to do operations on continuous functions to infinity, then the only way to do that in MATLAB is to use the symbolic toolbox. MATLAB: How to create sine wave from given square wave You just have to find the frequency of your square wave, and then create a sin wave like in those examples:https://fr.mathworks.com/matlabcentral/answers/36428-sine-wave-plothttps://fr.mathworks.com/matlabcentral/answers/157727-generating-a-6-second-sine-wave Related QuestionAmplitude of square waveDelaying the Signal in simulinkSquare waveHow to create a half cosine wave
Best Answer