Thread Subject: Skip a part of the signal

Subject: Skip a part of the signal

From: Prashant Sandhi

Date: 21 Feb, 2011 13:52:04

Message: 1 of 6

Dear Friends,

         I want extract the signal values only after 1sec of the simulation time or a part of the signal (Because in the beginning the signal starts at '0' which I don't need), as my signal repeats the same MINMAX values for long simulation times.

How can I get this part of the signal for further signal processing?

Thanking you in advance.

Prashant

Subject: Skip a part of the signal

From: ImageAnalyst

Date: 21 Feb, 2011 14:08:27

Message: 2 of 6

On Feb 21, 8:52 am, "Prashant Sandhi" <sandhi.prash...@gmail.com>
wrote:
> Dear Friends,
>
>          I want extract the signal values only after 1sec of the simulation time or a part of the signal (Because in the beginning the signal starts at '0' which I don't need), as my signal repeats the same MINMAX values for long simulation times.
>
> How can I get this part of the signal for further signal processing?
>
> Thanking you in advance.
>
> Prashant

-----------------------------------------------------------------------------
Prashant:
"I want extract the signal values only after 1sec":
Figure out what index corresponds to 1 second (let's say it's 20) then
do this:
extractedSignal = originalSignal(20:end);

"or a part of the signal ":
Decide on a start index and a stop index and do this:
extractedSignal = originalSignal(startIndex : stopIndex);

Subject: Skip a part of the signal

From: Prashant Sandhi

Date: 21 Feb, 2011 14:20:09

Message: 3 of 6

Sorry, I have not mention that I am using simulink. I think this I have to do it for matlab code what you have suggested.How can I do it in simulink?

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <a71a3f67-6d9c-4cef-98e7-cbea2ff8f48b@i39g2000prd.googlegroups.com>...
> On Feb 21, 8:52 am, "Prashant Sandhi" <sandhi.prash...@gmail.com>
> wrote:
> > Dear Friends,
> >
> >          I want extract the signal values only after 1sec of the simulation time or a part of the signal (Because in the beginning the signal starts at '0' which I don't need), as my signal repeats the same MINMAX values for long simulation times.
> >
> > How can I get this part of the signal for further signal processing?
> >
> > Thanking you in advance.
> >
> > Prashant
>
> -----------------------------------------------------------------------------
> Prashant:
> "I want extract the signal values only after 1sec":
> Figure out what index corresponds to 1 second (let's say it's 20) then
> do this:
> extractedSignal = originalSignal(20:end);
>
> "or a part of the signal ":
> Decide on a start index and a stop index and do this:
> extractedSignal = originalSignal(startIndex : stopIndex);

Subject: Skip a part of the signal

From: ImageAnalyst

Date: 21 Feb, 2011 14:25:57

Message: 4 of 6

I don't have Simulink so I'm not sure. I thought Simulink code was
more or less compatible with MATLAB code bu I don't know. Maybe
there's some kind of "clipping" module??? I'm sure someone else will
supply you with an answer.

Subject: Skip a part of the signal

From: Prashant Sandhi

Date: 21 Feb, 2011 14:54:04

Message: 5 of 6

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <d57aaff7-c025-45b7-b395-69091a52832d@z27g2000prz.googlegroups.com>...
> I don't have Simulink so I'm not sure. I thought Simulink code was
> more or less compatible with MATLAB code bu I don't know. Maybe
> there's some kind of "clipping" module??? I'm sure someone else will
> supply you with an answer.

Thank you for the reply.

Subject: Skip a part of the signal

From: Paulo Silva

Date: 21 Feb, 2011 16:44:05

Message: 6 of 6

"Prashant Sandhi" wrote in message <ijtqm4$5kk$1@fred.mathworks.com>...
> Dear Friends,
>
> I want extract the signal values only after 1sec of the simulation time or a part of the signal (Because in the beginning the signal starts at '0' which I don't need), as my signal repeats the same MINMAX values for long simulation times.
>
> How can I get this part of the signal for further signal processing?
>
> Thanking you in advance.
>
> Prashant

Use the Selector block

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com