Re: creating a sinewave on simulink(help needed)
- From: "Arnaud Miege" <arnaud.miege@xxxxxxxxxxxxxxx>
- Date: Tue, 7 Oct 2008 12:53:17 +0100
"David " <dave@xxxxxxxxxxxxxx> wrote in message
news:gcfbpe$eun$1@xxxxxxxxxxxxxxxxxxxxx
"Mithilesh Pandya" <mithilesh_pn@xxxxxxxxx> wrote in message
<gcegsp$2er$1@xxxxxxxxxxxxxxxxxx>...
Hello
I have to create a sine wave from simulink with a max value of 3 and a
minimum value of -1. i tried to do this in simulink,but i kept getting
the sinewave being centered at 0 with 2 volts above it and 2 volts below
it. thus i was getting a max value of 2 volts and a min value of -2
volts.
i know the peak to peak amplitude of my graph should be 4 volts so i set
my amplitude to 0.5*(4),frequency to (2*pi*2) and sample time to 1/1000.
the phase and the bias is 0.
i get a sinewave but not with the max and min values i want.
How can i create a sinewave with a max value of 3 and a min value of -1?
add it to a constant 1 value maybe?
or even better, set the bias to 1. Have a look at the sine wave
documentation for more details on the different parameters:
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/sinewave.html
Arnaud
.
- Follow-Ups:
- Re: creating a sinewave on simulink(help needed)
- From: David
- Re: creating a sinewave on simulink(help needed)
- References:
- creating a sinewave on simulink(help needed)
- From: Mithilesh Pandya
- Re: creating a sinewave on simulink(help needed)
- From: David
- creating a sinewave on simulink(help needed)
- Prev by Date: Reducing Matrix
- Next by Date: Re: captured image turn to red color. instead of true color
- Previous by thread: Re: creating a sinewave on simulink(help needed)
- Next by thread: Re: creating a sinewave on simulink(help needed)
- Index(es):
Relevant Pages
|