plotを用いた二点鎖線の書き方
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
 for x=0:pi/180:pi
     y=sin(x);
 end
 plot(x,y,'g-..','LineWidth',5);
このようなプログラムを書きましたが、二点鎖線ではなく一点鎖線になりました。どのように修正すれば書けますか?
0 Commenti
Risposta accettata
  Ma
      
 il 28 Giu 2018
        plot関数によると、2重鎖線はサポートされていないようです。
無理やり二点鎖線に見えるものを作ろうとすると、
x=0:pi/180:pi;
y=sin(x);
plot(x,y,'g--.','LineWidth',5);
(※図が1点になってたのでループをなくしました)とすると、破線と点が描けます。あとは画像の大きさを調整することで破線の間に見える点の数を2つにし、見かけ上は二点鎖線にすることができます。
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su ライン プロット in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!