I have 2 matrices.
A = [1 2 3 4 5];
B = [100 200 300 400 500]
I want to plot these two matrices on a graph. The values from matrix A
should be on x-axis and B
matrix should be on Y-axis. And with that, I also want to mark the respective points on the graph. If I use plot(A, B)
, it plots the graph correctly. How can I mark these 5 points on the graph?
You mean you want to do something like this:
figure,plot(A, B, '-o');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.