How to pass multiple signals in Fractional-order Integration in SIMULINK (MATLAB)?
Show older comments
Here is the pasted screenshot. The FOMCON fractional-order integral block is designed for taking only a scalar signal. If I try to apply Multiple inputs to the integration (FOMCON) block it shows a dimension error.
Answers (1)
madhan ravi
on 18 Nov 2023
Edited: madhan ravi
on 18 Nov 2023
0 votes
Use a For - Iterator subsystem which encapsulates this Integrator block. For the iterator you need to feed in the output of the width(which in your model is 1 when Switch condition is true and 4 when false) of the incoming signal , which is usually done by using width block. And within the For- Iterator subsytem you need to feed in the Switch Signal in each iteration using a Selector Block or a Multiport Switch feeding it’s output to the Integrator block and saving the output of the Integrator block in each iteration using Assignment Block. The output of the For- Iterator subsystem can be connected to a scope. By the way, I have no idea what the FOMCON integrator block does, but my suggestion should work without causing error.
15 Comments
Omar
on 18 Nov 2023
madhan ravi
on 18 Nov 2023
Or just a simpler way , just put Integrator block to each input signals of the Switch block ;). But it looks hectic this way, but from your side it will be the quicker side to test it .
Omar
on 18 Nov 2023
madhan ravi
on 20 Nov 2023
Edited: madhan ravi
on 20 Nov 2023

Sorry for the picture quality , I don"t have a laptop so only poor quality phone images.
madhan ravi
on 20 Nov 2023
Edited: madhan ravi
on 20 Nov 2023
if action subsytem

madhan ravi
on 20 Nov 2023
else action subsytem

madhan ravi
on 20 Nov 2023
For Iterator subsystem

madhan ravi
on 20 Nov 2023
Iterator settings

madhan ravi
on 20 Nov 2023
Assignment Block settings

madhan ravi
on 20 Nov 2023
Note the multiport switch settings is simply select last data port to "1" as the iterator and assignment blocks are 1 based.
Result 1 when input signal is 1
madhan ravi
on 20 Nov 2023
Result 2 when input signals are 4 (you can adapt the accordingly to your signal inputs 45 for example like you said)
Hope it helps.
Omar
on 23 Nov 2023
madhan ravi
on 2 Dec 2023
Yes, you are correct. The Toolbox is robust that it doesn’t allow to propagate vector signals. I can only suggest you to contact the author directly.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!