How do I generate this figure? (I can't produce bold edges)

조회 수: 3 (최근 30일)
WEN SHIN LU
WEN SHIN LU 2022년 1월 30일
댓글: WEN SHIN LU 2022년 1월 30일
Hi, everyone.
My code is below. But I have to modify the code because I want to generate a sign with bold edges (like the following figure). Can you help me with this? Thank you so much.
t =(1:4)'*pi/2;
x = sin(t);
y = cos(t);
fill(x,y,'y');
axis square off;
text(0,0,'WAIT','Color', 'k','FontSize', 80, ...
'FontWeight','bold','HorizontalAlignment', 'center');

채택된 답변

Simon Chan
Simon Chan 2022년 1월 30일
Add the following line:
t =(1:4)'*pi/2;
x = sin(t);
y = cos(t);
h = fill(x,y,'y'); % Get the handle
h.LineWidth = 5; % Add this line
axis square off;
text(0,0,'WAIT','Color', 'k','FontSize', 80, ...
'FontWeight','bold','HorizontalAlignment', 'center');

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by