confused regarding scaling of axis for an array?

I have an array of 161*2 with one column1 as step size of 1 and corresponding values in another column. Now I want 10000 points for column 1 and also for intermediate values for column2?

回答 (1 件)

dpb
dpb 2015 年 12 月 12 日

0 投票

doc interp1

3 件のコメント

Maneesh T
Maneesh T 2015 年 12 月 12 日
But how to show all the points on the graph by plotting? say how to convert 161*2 as said above to 10061*2 here we added 10000 points to x axis it should get interpolated and should display
Image Analyst
Image Analyst 2015 年 12 月 12 日
He answered your second question - look up interp1.
For the first question, use markers in your plot string. For example to show the points as blue asterisks with lines between then, do this
plot(column2, 'b*-', 'LineWidth', 2);
grid on;
dpb
dpb 2015 年 12 月 12 日
But even the largest of monitors won't have but ~2k resolution so what's the point? Only 1 of 5 points can possibly be shown separately. I few over the original, ok, I can see that, but the rest is overkill for no real purpose...

この質問は閉じられています。

製品

タグ

質問済み:

2015 年 12 月 12 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by