Using System Objects in complex programs (DSP)

1 回表示 (過去 30 日間)
Andrew McLean
Andrew McLean 2019 年 6 月 14 日
回答済み: Honglei Chen 2019 年 6 月 17 日
I'm looking for advice on best practice in using system objects in complex programs.
The examples in the documentation I've spotted so far are all oriented around either:
  • toy problems (read a file, filter it, write it), or
  • creating system objects from scratch
I'm looking at how to structure a more complex program combining many system objects. Specifically, I want to modularise the code rather than have a massive main program calling dozens of system objects. Any ideas where I should look?
Here is an example. I'm planning a program that processes signals embedded in a long timeseries. Just one of the tasks is to locate the times at which synchronisation pulses occur. The obvious approach is to apply a matched filter to the timeseries and then an adaptive threshold to the output of the matched filter, perhaps using the system objects:
  • dsp.FIRFilter
  • dsp.MovingAverage
  • dsp.MovingStandardDeviation
I'm considering creating my own system object that calls the system objects listed above. But I haven't seen any examples that do that. Is that because there is a better way?
Any advice greatefully received.
Andrew

回答 (1 件)

Honglei Chen
Honglei Chen 2019 年 6 月 17 日
Yes you can do it, there are many shipping System objects that do this. This is essentially done the same as a regular class.
HTH

カテゴリ

Help Center および File ExchangeSpectral Analysis についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by