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.
0 件のコメント
回答 (1 件)
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')
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!