フィルターのクリア

How can I plot array ?

373 ビュー (過去 30 日間)
theintern
theintern 2017 年 10 月 30 日
コメント済み: KL 2017 年 10 月 30 日
Hello, I have data in array like the image below. 1st coloumn of array is x axis, 2nd coloumn of array is y axis and 3th coloumn of array is the corresponding value. How can I plot this data?

採用された回答

KL
KL 2017 年 10 月 30 日
f = figure;
p = plot(array(:,1),array(:,2));
p(1).LineWidth = 2;
p(2).Marker = '.';
ax = gca
ax.XLim = [0 0.55];
ax.YLim = [0 0.2];
you can customize more specifications using the figure (f), line (p) and axis (ax) handles. https://de.mathworks.com/help/matlab/learn_matlab/understanding-handle-graphics-objects.html
  3 件のコメント
Jan
Jan 2017 年 10 月 30 日
Perhaps you want plot3(), because you are asking for X,Y and Z values. To get a spline, use the command spline. See:
doc spline
KL
KL 2017 年 10 月 30 日

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by