Thread Subject: s-function

Subject: s-function

From: Vijay Chourasia

Date: 10 Jul, 2009 09:56:02

Message: 1 of 5

Dear Sir,
I am new in using a s-function block with level 2 M-file. I wish to use it for execution of one of .m file with the help of simulink model.
The codes of this .m file are as given below. Can you please guide me that what steps are to be taken to use these codes in a simulink model.

x=wavread('ndata1',8000);
[C,L] = wavedec(x,5,'coif4');
[XD,CXD,LXD] = WDEN(C,L,'rigrsure','s','one',5,'coif4');
y = waverec(CXD,LXD,'coif4')

Regards

Subject: s-function

From: Shanmugam Kannappan

Date: 10 Jul, 2009 12:35:02

Message: 2 of 5

"Vijay Chourasia" <vijaychour@gmail.com> wrote in message <h3737i$9fl$1@fred.mathworks.com>...
> Dear Sir,
> I am new in using a s-function block with level 2 M-file. I wish to use it for execution of one of .m file with the help of simulink model.
> The codes of this .m file are as given below. Can you please guide me that what steps are to be taken to use these codes in a simulink model.
>
> x=wavread('ndata1',8000);
> [C,L] = wavedec(x,5,'coif4');
> [XD,CXD,LXD] = WDEN(C,L,'rigrsure','s','one',5,'coif4');
> y = waverec(CXD,LXD,'coif4')
>
> Regards
Hi,
for all these operation we have a ready made blocks in Signal processing blockset....
Please check the blockset section:
Sig : Sorces:wavread block
Sig:Transform: DWT
Hope may be useful....
Shan....

Subject: s-function

From: Vijay Chourasia

Date: 19 Jul, 2009 15:24:01

Message: 3 of 5

"Shanmugam Kannappan" <shanmugambe@gmail.com> wrote in message <h37chm$sb5$1@fred.mathworks.com>...
> "Vijay Chourasia" <vijaychour@gmail.com> wrote in message <h3737i$9fl$1@fred.mathworks.com>...
> > Dear Sir,
> > I am new in using a s-function block with level 2 M-file. I wish to use it for execution of one of .m file with the help of simulink model.
> > The codes of this .m file are as given below. Can you please guide me that what steps are to be taken to use these codes in a simulink model.
> >
> > x=wavread('ndata1',8000);
> > [C,L] = wavedec(x,5,'coif4');
> > [XD,CXD,LXD] = WDEN(C,L,'rigrsure','s','one',5,'coif4');
> > y = waverec(CXD,LXD,'coif4')
> >
> > Regards
> Hi,
> for all these operation we have a ready made blocks in Signal processing blockset....
> Please check the blockset section:
> Sig : Sorces:wavread block
> Sig:Transform: DWT
> Hope may be useful....
> Shan....
Dear Sir,
Thanks for your reply . But i want to use wden function for defining the denoising algorithm of my choice. Is there any block available for that? If not whatis the procedure to incorporate this one in simulink model?
Regards
Vijay S. Chourasia

Subject: s-function

From: Vijay Chourasia

Date: 19 Jul, 2009 15:31:01

Message: 4 of 5

"Shanmugam Kannappan" <shanmugambe@gmail.com> wrote in message <h37chm$sb5$1@fred.mathworks.com>...
> "Vijay Chourasia" <vijaychour@gmail.com> wrote in message <h3737i$9fl$1@fred.mathworks.com>...
> > Dear Sir,
> > I am new in using a s-function block with level 2 M-file. I wish to use it for execution of one of .m file with the help of simulink model.
> > The codes of this .m file are as given below. Can you please guide me that what steps are to be taken to use these codes in a simulink model.
> >
> > x=wavread('ndata1',8000);
> > [C,L] = wavedec(x,5,'coif4');
> > [XD,CXD,LXD] = WDEN(C,L,'rigrsure','s','one',5,'coif4');
> > y = waverec(CXD,LXD,'coif4')
> >
> > Regards
> Hi,
> for all these operation we have a ready made blocks in Signal processing blockset....
> Please check the blockset section:
> Sig : Sorces:wavread block
> Sig:Transform: DWT
> Hope may be useful....
> Shan....
Dear Sir,
Thanks for your reply . But i want to use wden function for defining the denoising algorithm of my choice. Is there any block available for that? If not whatis the procedure to incorporate this one in simulink model?
Regards
Vijay S. Chourasia

Subject: s-function

From: amr sayed

Date: 20 Nov, 2009 16:29:22

Message: 5 of 5

"Vijay Chourasia" <vijaychour@gmail.com> wrote in message <h3737i$9fl$1@fred.mathworks.com>...
> Dear Sir,

Dear sir

i am also trying to do the same thing without any gain
if you did it pls contact me

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
sfunction Sprinceana 10 Jul, 2009 08:21:53
rssFeed for this Thread

Contact us at files@mathworks.com