Effacer les filtres
Effacer les filtres

Using a part of a signal simulink

3 vues (au cours des 30 derniers jours)
aviran
aviran le 24 Juin 2014
Hi, I'm trying to use an integrator in simulink and I have a problem due to inf/nan errors. So overcome that I want to integrate only a part of the signal, is there a way to "trim" the signal or to limit it to specific times of integraion?
Thank you!

Réponses (5)

A Jenkins
A Jenkins le 24 Juin 2014
Perhaps a Saturation block or one of the other blocks in the Discontinuities folder?

aviran
aviran le 24 Juin 2014
If I'm not mistaken, the sturation block limits the y axis values, I want to use a part of the signal in a time limitation . trim the begining and the end

Sean de Wolski
Sean de Wolski le 24 Juin 2014
Perhaps a "Selector" block to select just the part you want (like an index).

aviran
aviran le 24 Juin 2014
I tried that but it doesn't seem to work, my signal is like a sine wave , it's not a vector. also I need to use a part of the vector and integrate it so it's not just for display. Unless I misunderstood the use of the selector block.

A Jenkins
A Jenkins le 24 Juin 2014
How about just using a switch, and flipping the switch when your value exceeds the threshold?
In the case below, I am integrating only the parts of the sine wave that are less than 1:

Catégories

En savoir plus sur Interactive Model Editing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by