- The “&” operator: https://www.mathworks.com/help/matlab/ref/and.html
- The “&&” operator: https://www.mathworks.com/help/matlab/ref/shortcircuitand.html
Data Alignment Issues in Embedded Coder
1 次查看(过去 30 天)
显示 更早的评论
Hi All,
While registering some data alignment parameters are included within the rtwTargetInfo.m file which is similar to the point-2 below:
https://in.mathworks.com/help/ecoder/ug/data-alignment-for-code-replacement-1.html#:~:text=Create%20and%20save%20the%20following%20registration,n)))%20with%20__declspec(align(%25n)).
Getting error which is attached in log file.
Any help would be appreciable.
Thanks.
0 个评论
回答(1 个)
Avadhoot
2023-10-4
Hi Tanmay,
I understand that you encountered an error related to the use of the "&&" and "||" operators in the data alignment parameters in Embedded Coder.
Based on the error message you provided, it seems that you are using the "&&" and "||" operators in your code. Please note that both the "&&" and "||" operators can only operate on scalar values. If you are working with non-scalar values like vectors, you should use the "&" operator instead of "&&" and the "|" operator instead of "||".
Please refer to the documentation below for more information about logical operators:
I hope it helps,
Regards,
Avadhoot.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!