Plotting array by array

Can you plot an array per array? Or can you plot an array VS fixed array? If so, then how?
For example: average rainfall (Y-axis) per category for an hurricane (X-axis), voltage drop (Y-axis) VS cable size (X-axis), heat lost per hour (Y-axis) per square meter area (X-axis),....
If creating another type of graphical visual better than plotting X-Y coordinates, that would be useful to know also. Hope someone can figure out this challenge, thanks so much.!

1 件のコメント

Amit
Amit 2014 年 1 月 28 日
This is confusing, atleast to me. Can you use an example.

サインインしてコメントする。

回答 (1 件)

Mischa Kim
Mischa Kim 2014 年 1 月 28 日

0 投票

The standard plot uses the same x-axis values for all plots, e.g.,
plot(x,y1,x,y2)
y1 and y2 would be your average rainfall and voltage drop, for example. Alternatively, you can use
plotyy(X1,Y1,X2,Y2)
with different x-axes for different plots. In this plot you will have the first y-axis labeling (for Y1) on the left axis, the second (for Y2) on the right axis.

1 件のコメント

tuyen
tuyen 2014 年 1 月 28 日
Cool, give me some time, thanks very much for input!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

質問済み:

2014 年 1 月 28 日

コメント済み:

2014 年 1 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by