From: JustADude Rupert on
Okay - I've got Simulink up and running and I'm using the Pulse Generator with a pretty simple transfer function and the scope. I would like however to use a pulse that goes from -1 to +1 instead of from 0 to +1. Is there any way to alter the Pulse Generator block so that the amplitude is between -1 and +1?

Thanks.
From: Arnaud Miege on

"JustADude Rupert" <jasonkrupert(a)yahoo.com> wrote in message
news:hkvpvk$llb$1(a)fred.mathworks.com...
> Okay - I've got Simulink up and running and I'm using the Pulse Generator
> with a pretty simple transfer function and the scope. I would like
> however to use a pulse that goes from -1 to +1 instead of from 0 to +1.
> Is there any way to alter the Pulse Generator block so that the amplitude
> is between -1 and +1?
> Thanks.

Change the amplitude to 2 instead of 1, and then subtract 1 to the output.

HTH,

Arnaud


 | 
Pages: 1
Prev: return larger of two numbers
Next: Indexing HELP