this function does not fully set the dimensions of output port 2?

i have attached pic when i run this file it gives me port erroe 2 i have tried all solutions available on internet ..t

4 Comments

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.
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.
yeah it worked. great man thanks.

Sign in to comment.

Tags

Asked:

on 18 Sep 2019

Answered:

on 27 Aug 2021

Community Treasure Hunt

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

Start Hunting!