plotの開始位置の指定方法について教えてください.
30 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
画像の上にplotを使って線を重ねているのですが,線の開始位置がどうしても座標(0,0)から始まってしまい,余計な線が出てしまいます.(白い〇で囲んだ左上の直線は最初の点に向かって伸びているもので,意図した線ではありません)
どうしたら開始位置を指定した座標にできるでしょうか?ご教示願います.
2 commentaires
Shunichi Kusano
le 27 Août 2019
下記のコードでは、原点を含まない線を書くことができました。
plotに入れる変数に(0,0)座標が含まれているのではないかと思うのですが、
確認できますでしょうか。もしくは実際のコードを貼り付けていただけると何かしらわかるかと思います。
img = imread('coloredChips.png');
imagesc(img)
hold on;
plot(100*rand(10,1)+100, 100*rand(10,1)+100, '-');
Réponses (0)
Voir également
Catégories
En savoir plus sur ライン プロット 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!