graph plot with respect to axis

조회 수: 8 (최근 30일)
Prabha Kumaresan
Prabha Kumaresan 2017년 12월 5일
댓글: Prabha Kumaresan 2017년 12월 5일
A=1:10; B=1:20; C=(2,4,6,8,10,11,12,14,16,18); how to plot the graph of A vs B with respect to C.

답변 (1개)

KSSV
KSSV 2017년 12월 5일
A=1:10; B=1:20;
C=[2,4,6,8,10,11,12,14,16,18];
figure
hold on
plot(A,C,'-or')
Ci = interp1(A,C,B) ;
plot(B,Ci,'.-b')
legend('A vs C', 'B vs C')
  댓글 수: 1
Prabha Kumaresan
Prabha Kumaresan 2017년 12월 5일
thanks for your response but if A=[2 4 6 8 10] B=[12 14 16 18 20] and C=[1,3,5,7,9,11,13,15,17,19] how to plot the graph of A vs B with respect to C.

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

카테고리

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