How to generate new line instead of \n, when using c printf in Stateflow

조회 수: 2 (최근 30일)
Jalil
Jalil 2013년 4월 4일
Hi, I would like to use C printf in Stateflow charts and i'm tryng to print tab and new line. The transition code looks like : { printf("Waiting \t My program \n"); }
In simulation it's working fine, text is correctly printed in Matlab console, but the generated code by "Embedded coder" looks like : printf("Waiting \\t My program \\n");
How to prevent code generation to add '\' before new line and tab ? Thanks

답변 (1개)

Kushagra
Kushagra 2013년 5월 4일
try char(10)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by