graph plot with respect to axis

8 Ansichten (letzte 30 Tage)
Prabha Kumaresan
Prabha Kumaresan am 5 Dez. 2017
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.

Antworten (1)

KSSV
KSSV am 5 Dez. 2017
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 Kommentar
Prabha Kumaresan
Prabha Kumaresan am 5 Dez. 2017
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by