graph plot with respect to axis
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponses (1)
KSSV
le 5 Déc 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')
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!