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

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.
so what do you recommend ?
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.

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2019년 9월 18일

답변:

2021년 8월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by