this function does not fully set the dimensions of output port 2?
Show older comments
i have attached pic when i run this file it gives me port erroe 2 i have tried all solutions available on internet ..
t
t4 Comments
David K.
on 18 Sep 2019
I've gotten this a lot as well. It generally means for me that there is some error in the function itself. If you take the function out of the simulink and try to run it with some random reasonable inputs, see if it gives you errors.
Ali Mukhtar
on 18 Sep 2019
David K.
on 18 Sep 2019
I assume that the problematic block is a matlab function block. Copy the code and put it into a .m file. Then run the problematic function with some test inputs. I expect it will throw an error which will be more descriptive than just port error. Fix whatever the errors are and then try to run the simulink again.
Ali Mukhtar
on 18 Sep 2019
Answers (1)
Zahedd Zabadi
on 27 Aug 2021
0 votes
Categories
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!