필터 지우기
필터 지우기

Single plot title line with multiple text interpreters?

조회 수: 4 (최근 30일)
Anthony Cook
Anthony Cook 2023년 7월 14일
댓글: Anthony Cook 2023년 7월 14일
I am having trouble with the default latex interpreter changing an underscore(_) to a subscript in a location where I do not want this to happen in a plot title.
filenameHBW = 20220303_F1 ;
title( [ 'HSRL2 Ocean b_b_p Retrieval From' , filenameHBW ] )
In the above example, it is desired to interpret the underscores in b_b_p as subscripts, but it is not desired to interpret the underscore in the variable filenameHBW as a subscript.
What is the simplest way to create title such that the interpreter ignores the underscore in the filenameHBW variable?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2023년 7월 14일
title( [ 'HSRL2 Ocean b_b_p Retrieval From' , strrep(filenameHBW,'_','\_') ] )

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by