×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

(OP)
Dear Simulink people. Im not much of a programmer and depended up on tools like simulink. Here is my question. I'm interested in data compression. I would like to:

Step 1: Sample a continuous time signal (microphone or generated polynomial function) with a certain samplerate to a set discrete data points.

Step2: Manipulate these datapoint in some way and take out points who are not interesting. And allocate points who are.

Step3: Interpolate or function approximate the strategic chosen data points.

My aim is to sample a function at a high frequency rate. Take out strategic data points. (compression) and interpolate the function to it looks similar to the original signal.

- Can this be done in only simulink, without programming in matlab? - What blocks do i need.

I have started with a sine genrator, a quantifier, and encoder. But i really dont know what all blocks to. Ill be happy to read you responses.

Best regards, Bart

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

You say "manipulate the (continuous time) signal and take out uninteresting points", but do you understand what that means? How do you remove "uninteresting points" and still have a valid dataset (other than a time compressed version)? You can't then add those points back in because you can't calculate what they originally were to any more than a first degree. If the removal of the datapoints is repeatable, you are doing no more than decimating the signal. That's not compression (unless by "compression" you mean time-compressed, but it feels like you mean "remove unnecessary information").

You need to be more clear as to your intentions...

Dan - Owner
http://www.Hi-TecDesigns.com

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

To answer your basic question, yes you can do all that in simulink as it is turing complete. But just because you can do something doesn't mean it will be easy - simulink is designed to work with little bits of matlab for number crunching.

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

(OP)
Ok ill rephrase : "remove unnecessary information"
My idea is:
- to equidistant sample a continues signal with a high sample rate. (let say i'm sampling a 0,001 sec audio signal with 48000 Hz)
- plot points in an array(matrix).
- think up an algorithm for picking out stategic values that. top (x,y) bottom (x,y) and points around the parabola's
- with those non equidistant (x,y) values or coordinates i want to spline interpolate multiple 2nd 3rd 4th ...degree polynomials to construct back the original signal.

but as i read, this looks like an impossible job to do in SIMULINK.
or not?

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

A very quick search suggests that Simulink doesn't have a built in curve fitting block. It wouldn't take long to write a new block that does a curve fit, but it would involve programming in Matlab. I don't think your basic idea would be much use for sound signals, but assuming that it does fulfill some need I'd have thought there were many better tools than Simulink to do it, even Excel!

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

(OP)
no curve fitting blocks? are you sure? i think it does.
roughly polynomial fitting over x,y values for me is the same as curve fitting.
so what about lookup tabels?

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

(OP)
what about the DSP toolbox? i dont know. i hoped to find pragmatic answers. not even on the official matlab simulink forum comes a answers. anyway thanks. topic can be closed.

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

If you're working with the time-based signal, this still sounds like basic decimation to me. Remove every 10th data point, then add it back in via curve-fitting during reconstruction. No one point is more "interesting" than another. If you're trying to remove slow-moving signals that aren't "interesting", it's called a low-pass filter, and so on and so on.

I can't tell if you don't understand the actual process or if you're simply not using the correct terminology for what you want accomplished...

Dan - Owner
http://www.Hi-TecDesigns.com

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

Your statement " to equidistant sample a continues signal with a high sample rate. (let say i'm sampling a 0,001 sec audio signal with 48000 Hz)" is not particularly encouraging. Since the nominal audio range extends to 20 kHz, 48 kHz is barely above Nyquist. Moreover, 1 ms segment sampled at 48 kHz is only about 50 samples to start with, which is not enough to do anything at all, processing wise.

TTFN
FAQ731-376: Eng-Tips.com Forum Policies
[IMG http://tinyurl.com/7ofakss]
Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers


Of course I can. I can do anything. I can do absolutely anything. I'm an expert!
There is a homework forum hosted by engineering.com: http://www.engineering.com/AskForum/aff/32.aspx

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

(OP)
Ok thanks everybody. I cant explain it better then this. My question was simple. Can you do what im asking with simulink. I guess not but maybe a simulink course would help me better.

RE: SIMULINK: sampling of a continuous signal, encoding, decoding and interpolation the data

Yes, it is possible, but simulink is not the ideal environment in which to do it without programming because many of the blocks you will need will have to be constructed by joining many other simulink blocks together. If you are prepared to do some programming then the bits that simulink make easy are easy anyway, however you do it.

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close