How to plot the data i.e. in form of vectors?
1 回表示 (過去 30 日間)
古いコメントを表示
I have vector 1 and vector 2.
I want to arrange the vector 1 in ascending order while keeping the relationship b/w elements of vector1 and vector2. I am using plot, and if i m trying to arrange vectors in order I am losing the relationship. How I can plot the data keeping actual relationship b/w vector 1 and vector 2.
0 件のコメント
採用された回答
Friedrich
2012 年 2 月 24 日
Hi,
a small example would be:
x1 = [ 4 3 2 1]
x2 = [1 2 3 4]
[newx1, id] = sort(x1)
newx2 = x2(id)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Formatting and Annotation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!