Changing font size in scope

조회 수: 38 (최근 30일)
Mohammed Shafiq
Mohammed Shafiq 2023년 4월 13일
댓글: Adam Danz 2023년 4월 13일
I want to change the font size in the scope window i.e) to increase the size of the numbers in the axes

답변 (1개)

Jethro Kimande
Jethro Kimande 2023년 4월 13일
To increase the font size of the numbers on the axes in MATLAB's scope window, you can use the set(gca,'fontsize',fontSize) command, where fontSize is the desired font size in points.
% Create a sine wave and display it on a scope
t = linspace(0, 10, 1000);
y = sin(2*pi*2*t);
plot(t, y);
title('Sine Wave');
xlabel('Time (s)');
ylabel('Amplitude');
grid on;
% Increase font size of the numbers on the axes
fontSize = 20; % Set desired font size
set(gca, 'fontsize', fontSize);
  댓글 수: 1
Adam Danz
Adam Danz 2023년 4월 13일
See also fontsize starting in R2022a
fontsize(gca,14,'points')

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by