From 2 vectors of n elements To n points
이전 댓글 표시
Hi, if I have two vectors:
A=[
a1
a2
a3
a4
a5
a6
a7
]
and
B=[
b1
b2
b3
b4
b5
b6
b7
]
What's the command to create 7 points
p1=[a1, b1], p2=[a2,b2], ... p7=[a7,b7] ?
Thanks
채택된 답변
추가 답변 (2개)
Azzi Abdelmalek
2012년 11월 18일
편집: Azzi Abdelmalek
2012년 11월 18일
A=1:4
B=sin(t)
scatter(A,B)
Matt Fig
2012년 11월 18일
P = [A,B];
Now point 1 is P(1,:). Point 2 is P(2,:), etc.
카테고리
도움말 센터 및 File Exchange에서 Simulink 3D Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!