Replacing the '@' symbol for MATLAB Coder
Mostrar comentarios más antiguos
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 comentarios
Adam Kaas
el 29 de Mayo de 2012
Kaustubha Govind
el 29 de Mayo de 2012
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
el 30 de Mayo de 2012
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!