Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Simulink User-Defined Function: Variable-sized Array to eliminate array elements

2 Ansichten (letzte 30 Tage)
Colin
Colin am 21 Feb. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hello all,
I am currently trying to build a user-defined function that will effectively generate an equally spaced vector from a specified (dynamic) upper and lower bound.
For example: input1 = 5; input2 = 12; output = [5 6 7 8 9 10 11 12];
The increment will always be 1, however the size of the output vector will change over time. I have tried building this function numerous ways, but I always receive some sort of error. Any advice on how to proceed would be greatly appreciated.
As a sidenote, the end-goal of building this user-defined function is to remove entirely array elements which saturate when passed through a saturation block. If anybody knows of a quick and easy way to do this instead, it would be greatly appreciated.
Regards,
Colin

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by