Simulink error: All inputs must be constant.
显示 更早的评论
Hey,
I receive the following error message when trying to run the Simulink model.
All inputs must be constant.
P-code function 'p_file.p' produced an error.

Code of the Matlab Function Block:
function y = fcn(m,n)
y = p_file(m,n)
I can run p_file(1,12) from workspace without any problem.
Thank you for any suggestions!
5 个评论
Walter Roberson
2016-6-1
If you call
y = p_file(1,12);
in the Function Block, then does that work?
wkm42
2016-6-1
wkm42
2016-6-1
Walter Roberson
2016-6-1
编辑:Walter Roberson
2016-6-1
Sorry, I do not know about that.
Does the p_file use the signal processing toolbox?
wkm42
2016-6-2
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!