Quantcast
Channel: MATLAB Central Newsreader - tag:"red"
Viewing all articles
Browse latest Browse all 13

Re: Need help plotting a red x on the final point of a line graph.

$
0
0
On 02/28/2015 4:19 PM, Hayden reynolds wrote:
> I am plotting multiple line on a graph and need to mark the end point of
> each line with a red X. I have tried referencing the position of the
> last point stored in an array and using 'r', 'cross' commands to form
> the red X. However i keep receiving error "There is no r property on the
> Line class." I am assuming I am going about plotting the x entirely
> wrong. Any advice on how to do this would be helpful.

hold on
plot(x(end),y(end),'rx')

May want to change 'markersize' property to enlarge the mark.

--

Viewing all articles
Browse latest Browse all 13

Latest Images

Trending Articles





Latest Images