作业帮 > 综合 > 作业

matlab将已知坐标点画在图上

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/22 12:29:33
matlab将已知坐标点画在图上
x =
351.0000
519.0000
298.0000
563.0000
278.0000
195.0000
295.0000
250.0000
398.0000
283.0000
349.0000
205.0000
243.0000
379.0000
161.0000
223.0000
443.0000
255.0000
324.0000
369.0000
311.0000
184.0000
y =
241.0000
206.0000
212.0000
205.0000
397.0000
446.0000
485.0000
477.0000
279.0000
443.0000
287.0000
40.0000
397.0000
242.0000
226.0000
80.0000
334.0000
161.0000
249.0000
336.0000
365.0000
166.0000 求出了点的坐标,怎么把它们画在一张图上,以点的形式,不是曲线,看出大致点的分布情况
那可以调整坐标轴的长度么,总觉得有点变形,和原图片的点对不上
使用plot(x,y,'*')
PLOT(X,Y,S) where S is a character string made from one element
from any or all the following 3 columns:
b blue .point - solid
g green o circle :dotted
r red x x-mark -.dashdot
c cyan + plus -- dashed
m magenta * star (none) no line
y yellow s square
k black d diamond
w white v triangle (down)
^ triangle (up)
< triangle (left)
> triangle (right)
p pentagram
h hexagram
For example,PLOT(X,Y,'c+:') plots a cyan dotted line with a plus
at each data point; PLOT(X,Y,'bd') plots blue diamond at each data
point but does not draw any line.
祝你学习愉快!