How do I offset a vector plot?
古いコメントを表示
Hello there!
I have this bit of code below. I want it to plot points like (5,5) (6,7)(7,9)(8,11)(9,13), etc. Basically, the x being the corresponding place in the vector, and teh y being the value of the vector. Currently, I get (1,5) (2,7) (3,9) because its the length of the vector not the actual "length" number. How would I do that? (If I am not clear please tell me)
V = 5:2:17
figure
plot(1:length(V),V)
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Map Display についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!