Filter löschen
Filter löschen

Plot the boxchart in the time

2 Ansichten (letzte 30 Tage)
Thanh
Thanh am 16 Mär. 2023
Beantwortet: Anurag Ojha am 16 Mär. 2023
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.

Antworten (1)

Anurag Ojha
Anurag Ojha am 16 Mär. 2023
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!

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by