How to draw multiple constant lines?
    17 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I want to draw multiple constant lines in a figure. I coded below using xline() and yline() refering Vertical line with constant x-value - MATLAB xline (mathworks.com). But it doesn't work. Would you tell me what is wrong?
xline([1,2,3]);
0 件のコメント
採用された回答
  Cris LaPierre
    
      
 2021 年 5 月 29 日
        Could you provide more details about what you mean by 'it didn't work'?
xline([1,2,3]);
xlim([0 5])
2 件のコメント
  Cris LaPierre
    
      
 2023 年 2 月 21 日
				Yes. The ability to include a vector of inputs to xline and yline was added in R2021a.
その他の回答 (1 件)
参考
カテゴリ
				Help Center および File Exchange で Entering Commands についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




