
how to plot a table data of size 2x47 ?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    bushra raza
 il 9 Feb 2019
  
    
    
    
    
    Commentato: bushra raza
 il 9 Feb 2019
            Hi,
i have a table of size 2x47(attached here for advice). 
each column is representing years, and two rows have  data of two months. i want to plot /bar each month data year wise . i.e. years on x axis, and month data on y axis, with separate colors, so as to identify each month's trend. 
i am using Matlab R2017b. Can any one please guide me? 
0 Commenti
Risposta accettata
  Image Analyst
      
      
 il 9 Feb 2019
        Try this:
s = load('T_may_june.mat')
T_may_june = s.T_may_june
x = 1971:2017;
may = T_may_june{1,:};
june = T_may_june{2, :};
plot(x, may, 'r*-', 'LineWidth', 2);
hold on;
plot(x, june, 'bs-', 'LineWidth', 2);
grid on;
legend('May', 'June', 'Location', 'northwest');

Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Line Plots 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!

