Problem with using a commando

6 次查看(过去 30 天)
Regina
Regina 2012-4-30
To create a crossbar matrix for those points that we want to plot, we can use one of these ways:
P=[x;y]=[p1 p2 ... pn]
x and y are row vectors of length n of x and y coordinates points, while Pi is column vector with coordinates for a point. If we want to plot a curve with x and y coordinates with the commando:
>>plot(P(1,:), P(2,:))
But I really don't know how to use it, I mean, what values belongs to respective index?
For example if I have those coordinates: (0,1), (1,1), (0,0), (1,0) - where should I put these values in the commando?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by