필터 지우기
필터 지우기

How to plot the data i.e. in form of vectors?

조회 수: 1 (최근 30일)
Amit
Amit 2012년 2월 24일
편집: Image Analyst 2013년 10월 23일
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.

채택된 답변

Friedrich
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)
  댓글 수: 2
Amit
Amit 2012년 2월 24일
a= [ 4 5 3 6 23]
b= [56 3 6l 4 6]
I want to arrange the a in ascending order and plot a & b
as
a=3,b=61
a=4, b56
...........
..........
In this manner I want to plot
Amit
Amit 2012년 2월 24일
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by