Invalid first data argument
    2 views (last 30 days)
  
       Show older comments
    
    Kiran Sagar
      
 on 7 Apr 2016
  
    
    
    
    
    Commented: Image Analyst
      
      
 on 8 Apr 2016
            The following code:
plot(x,y,'Marker','*','Color','r',x2,y2,'Marker','--','Color','b')
generates this error: "Invalid first data argument".
here x, y and x2, y2 are arrays of same size.
2 Comments
Accepted Answer
  Image Analyst
      
      
 on 7 Apr 2016
        
      Edited: Image Analyst
      
      
 on 7 Apr 2016
  
      '--' is not a valid choice for 'Marker'. Use a valid marker. See the help for a list of them.
Try this:
plot(x,y,'r*-', x2,y2,'bd-');
0 Comments
More Answers (0)
See Also
Categories
				Find more on Stem Plots in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
