フィルターのクリア

Plot 2D line graph for each column in separate box having with minor grids on

1 回表示 (過去 30 日間)
Shakir Hussain
Shakir Hussain 2018 年 11 月 21 日
回答済み: TADA 2018 年 11 月 21 日
The plot should consist on 36 2D line graph each in a separat box with unique x and y lable and 36 line graph must be in single window
Data = 204*36
x-axis of each box is 204 values(1 to 204)
Y-axis of each box is 100 values (1 to 100) (ignore the negative values in this plot)
we can plot 2d line graph with minor and major grids but do not know to get the exact required graph.
plot(test(:,1:end));
grid on
grid minor
How to get this kind of plot (a line graph in each box)
Thank you for help in advance

採用された回答

TADA
TADA 2018 年 11 月 21 日
To Generate A Separate Box For Each Curvery You Can Use subplot function Which Creates A Grid Of Axes
for i = 1:size(test,2)
ax1 = subplot(6,6,i);
plot(test(:,i));
end
or Generate An Axes Object On Your Own Usin axes function. in that case you'll want set the location manually. Its A Bit More Tedious But Gives you More Control
You Can Do It Similarly In A Loop

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by