Clipping sin wave script, what is not correct ?
Ältere Kommentare anzeigen
Write a script to generate the signal values for the figure above corresponding to equally-spaced time values ranging from 0 to 6*pi . Assign these time values to the variable Time. Assign the resulting voltage values to the variable signalVoltage. The sinusoidal function is given by the formula: Y=7sin(x) In order to model the clipping at plus or minus 5 Volts, you will need to replace any values of y that are greater than the threshold of 5 with the value 5. Similarly you will need to replace any values of y that are less than with the value -5
My attempt: Time= 0:6*pi Signal voltage = 7sin(time) Plot ( time, signal voltage) Signalvoltagelim([-5,5])
Don’t know what I am doing wrong. What in my script is wrong ?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Instrument Control Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

