필터 지우기
필터 지우기

Plot the boxchart in the time

조회 수: 2 (최근 30일)
Thanh
Thanh 2023년 3월 16일
답변: Anurag Ojha 2023년 3월 16일
Hello,
I want to plot boxchart (Y) and linear line(lvdt) in the same time. I give the data attacked below. Please advise me! Many thanks.

답변 (1개)

Anurag Ojha
Anurag Ojha 2023년 3월 16일
Hi Thanh,
As per my understanding you want to plot a box chart and linear line in the same figure.
I have written a sample code which you can refer
% Create a matrix with 10 rows and 10 columns.
Y = magic(10);
boxchart(Y);
xlabel('Column');
ylabel('Value');
% To plot a linear line in same figure
hold on
X = 1:50;
plot(X);
To further explore the functions you can refer to below links:
Hope it helps!

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by