Colorbar not supported in Simulink "MATLAB function" surf plot
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a custom surf plot written into a "MATLAB function" in simulink environment and I add the 'colorbar' in the plot to see the color division.
However I get the following error, related to the "colorbar" command:
Function 'colorbar' not supported for code generation.
Function 'Beam/MATLAB Function' (#46.1201.1209), line 36, column 60:
"colorbar"
Launch diagnostic report.
Component:MATLAB Function | Category:Coder error
How can I add a colobar to my simulink MATLAB function without get such error?
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 6월 4일
편집: Ameer Hamza
2020년 6월 4일
Add this line
coder.extrinsic('colorbar')
in the MATLAB function block before the colorbar line.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!