![]() |
如何在MATLAB中制作基本线图?
我有
a = 54.1848 50.0456 99.9748 83.1009 63.1457 91.7577 64.0805 48.2090 75.7711 t = 79.7077 31.0913 14.9389 10.8303 16.4844 26.8465 41.6946 77.3369 186.3246 怎样才能使一个简单的线图a对y axis和t的x axis ? plot (a,t)给出 [IMG]https://imgur.com/rbZWx.jpg[/IMG] 并plot (t,a)得出 [IMG]https://imgur.com/CJhF1.jpg[/IMG] 我不明白这些是如何产生的。结果应该是其他的东西。 回答: [t_sorted, index] = sort(t); plot(t_sorted, a(index)); 是执行此操作的最有效方法。 或者,如果您不太在乎这些行,则可以简单地使用: plot(t,a,'rx') [url=https://stackoverflow.com/questions/1692527]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 20:25。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.