Half-sine pulse
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Half-sine pulse

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP
Author Message
metuor@yahoo.com
Guest





Posted: Tue Nov 29, 2005 1:16 am    Post subject: Half-sine pulse Reply with quote

I need to model a shock load as a half-sine pulse, with time duration
1s and centered at 0.5 and amplitude 3000 g.

I appreciate your help
Thank u.
Back to top
Jerry Avins
Guest





Posted: Tue Nov 29, 2005 8:03 am    Post subject: Re: Half-sine pulse Reply with quote

metuor@yahoo.com wrote:
Quote:
I need to model a shock load as a half-sine pulse, with time duration
1s and centered at 0.5 and amplitude 3000 g.

So? You just specified it. What do you need to know? The frequency is
1/2 cycle per second, or pi radians/second. The time range and peak
values are specified. What's the problem?

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Back to top
metuor@yahoo.com
Guest





Posted: Tue Nov 29, 2005 8:46 am    Post subject: Re: Half-sine pulse Reply with quote

The problem is that i dont know how to write the program

thanks
Back to top
Fred Marshall
Guest





Posted: Tue Nov 29, 2005 9:16 am    Post subject: Re: Half-sine pulse Reply with quote

"metuor@yahoo.com" <Muneeb.Arrabi@gmail.com> wrote in message
news:1133238947.703256.220200@f14g2000cwb.googlegroups.com...
Quote:
Here is the problem i want to model this shock load as an input in
nonlinear differential equation and to solve it, I reed the Matlab help
files and I found "gauspuls " function which could be used to model
the shock load but it keeps the pulse centered in the origin, I need to
move it to 0.5, pleas if you know any other way to model the pulse load
let me now "as u can I am not very good in using Matlab"


Matlab seems to be the least of your worries.

Consider this:

Sequences are stored in arrays / vectors

Those arrays / vectors naturally have indices
Those indices can relate to coordinates in time, space, etc.
You are indexing things in time.

You get to decide where in an input vector where t=0 resides.
Your decision will affect time registration thereafter.

Example: a gate pulse with various time registrations:

g=[0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0]
the gate center is at index 13.
Since Matlab uses index "1" for the first element, if you align the first
element with t=0 then a scaled time array corresponding to g would be:
t=[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19]

Example: a gate pulse centered at zero:

g=[1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
t=[-2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17]

Example: a gate pulse centered at zero:
g=[0 0 0 0 0 1 1 1 1 1 0 0 0 0 0]
t=[-7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7]

The problem you're having with gauspuls is probably that the T vector you're
creating starts at t=0. Try it starting at t=-0.01 or some such value.....

Then, you can redefine the value of t along the gauspuls indices any way you
like.

fred
Back to top
dbell
Guest





Posted: Tue Nov 29, 2005 9:16 am    Post subject: Re: Half-sine pulse Reply with quote

What can you say?

Dirk
Back to top
Jerry Avins
Guest





Posted: Tue Nov 29, 2005 9:16 am    Post subject: Re: Half-sine pulse Reply with quote

metuor@yahoo.com wrote:
Quote:
The problem is that i dont know how to write the program

What program" Language? Platform? Once you write it, what do you do with
it? I think there is more problem than you realize.

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Back to top
metuor@yahoo.com
Guest





Posted: Tue Nov 29, 2005 9:16 am    Post subject: Re: Half-sine pulse Reply with quote

Here is the problem i want to model this shock load as an input in
nonlinear differential equation and to solve it, I reed the Matlab help
files and I found "gauspuls " function which could be used to model
the shock load but it keeps the pulse centered in the origin, I need to
move it to 0.5, pleas if you know any other way to model the pulse load
let me now "as u can I am not very good in using Matlab"
Back to top
meteor
Guest





Posted: Tue Dec 06, 2005 1:16 am    Post subject: Re: Half-sine pulse Reply with quote

I solved the problem using a combination of the sin and unit step
function
Thanks you anyway.
Back to top
meteor
Guest





Posted: Tue Dec 06, 2005 1:16 am    Post subject: Re: Half-sine pulse Reply with quote

I solved the problem using a combination of the sin and unit step
function
Thanks you for your time
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB