How can I plot array ?
373 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168928/image.png)
0 Kommentare
Akzeptierte Antwort
KL
am 30 Okt. 2017
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 Kommentare
KL
am 30 Okt. 2017
Also maybe the example on this link: https://de.mathworks.com/help/curvefit/examples/constructing-spline-curves-in-2d-and-3d.html
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!