Replacing the '@' symbol for MATLAB Coder
이전 댓글 표시
Hey guys, ran into an interesting issue when trying to replace the @ symbol. I was originally going to recode this by hand in C but it became a little bit more complicated than I thought so I thought I would re-look into removing @ from my code to enable it to build properly. Here's what I'm looking at:
So I discovered that my @ symbol was passing the same value every time to an anonymous function. So what I did is I removed the portion of the equation that had the @ symbol in it and I added in a line initializing my variable and setting it to the appropriate value. When I run the builder on one of my functions that calls the function containing the @ symbol, I now receive a new error referring to a function that I can't use Coder on anymore (The function 'qfunc' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.) which I'm not terribly worried about. What I'm worried about is the other error that states that my function call is failing to the function that originally had the @ symbol.
So what I'm asking is should I go back to assuming I'll have to code this by hand or do you think there is a way I can get this to work. Thanks guys!!!
댓글 수: 3
Adam Kaas
2012년 5월 29일
Kaustubha Govind
2012년 5월 29일
Adam: I don't understand the statement "error that states that my function call is failing to the function that originally had the @ symbol" - could you post the exact error message please?
Adam Kaas
2012년 5월 30일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!