graph plot with respect to axis

6 次查看(过去 30 天)
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