matlab将已知坐标点画在图上x =351.0000519.0000298.0000563.0000278.0000195.0000295.0000250.0000398.0000283.0000349.0000205.0000243.0000379.0000161.0000223.0000443.0000255.0000324.0000369.0000311.0000184.0000y =241.0000206.0000212.0000205.0000
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/27 11:48:16
![matlab将已知坐标点画在图上x =351.0000519.0000298.0000563.0000278.0000195.0000295.0000250.0000398.0000283.0000349.0000205.0000243.0000379.0000161.0000223.0000443.0000255.0000324.0000369.0000311.0000184.0000y =241.0000206.0000212.0000205.0000](/uploads/image/z/11502598-22-8.jpg?t=matlab%E5%B0%86%E5%B7%B2%E7%9F%A5%E5%9D%90%E6%A0%87%E7%82%B9%E7%94%BB%E5%9C%A8%E5%9B%BE%E4%B8%8Ax+%3D351.0000519.0000298.0000563.0000278.0000195.0000295.0000250.0000398.0000283.0000349.0000205.0000243.0000379.0000161.0000223.0000443.0000255.0000324.0000369.0000311.0000184.0000y+%3D241.0000206.0000212.0000205.0000)
matlab将已知坐标点画在图上x =351.0000519.0000298.0000563.0000278.0000195.0000295.0000250.0000398.0000283.0000349.0000205.0000243.0000379.0000161.0000223.0000443.0000255.0000324.0000369.0000311.0000184.0000y =241.0000206.0000212.0000205.0000
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 求出了点的坐标,怎么把它们画在一张图上,以点的形式,不是曲线,看出大致点的分布情况
那可以调整坐标轴的长度么,总觉得有点变形,和原图片的点对不上
matlab将已知坐标点画在图上x =351.0000519.0000298.0000563.0000278.0000195.0000295.0000250.0000398.0000283.0000349.0000205.0000243.0000379.0000161.0000223.0000443.0000255.0000324.0000369.0000311.0000184.0000y =241.0000206.0000212.0000205.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.
祝你学习愉快!