How to connect dots in figure?

2 次查看(过去 30 天)
Harsha M V
Harsha M V 2021-9-17
编辑: Chunru 2021-9-17
I have a 50x6 matrix,
How to plot this matrix, such that all row data are conncted?
It should be like 50 lines in the figure.

回答(1 个)

Chunru
Chunru 2021-9-17
编辑:Chunru 2021-9-17
% data
x = randn(50, 6)*.5+(1:6);
% 6 lines, 50 data points each line
% if you really want to plot 50 lines, then: plot(x')
plot(x)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Properties 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by