How can I p-code a function whose input parameter is of type struct?
4 次查看(过去 30 天)
显示 更早的评论
Dear all,
I need to p-code a certain function of my program which contains the main algorithm. The problem is that the input argument of the algorithm function is a structure called "guidata". When I try to p-code this function I, of course, get the following error message:
>> pcode(algorithm)
Reference to non-existent field 'signals'.
Error in algorithm (line xy)
algorithm.run.output = guidata.signals.level;
My question now is if there is any way p-coding this file without changing the structure or worse: using global variables!
Thanks in advance!
Regards, Wiebke
0 个评论
回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!