How can i create a table
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Lily
 el 6 de Mayo de 2015
  
    
    
    
    
    Editada: Walter Roberson
      
      
 el 6 de Mayo de 2015
            For example:
a=2; b=6; c=;8 I would like to create a table like
Times       Frequency      Value
--------------------------------
2            6              8
3 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 6 de Mayo de 2015
        
      Editada: Walter Roberson
      
      
 el 6 de Mayo de 2015
  
      fprintf('%-20s %-20s %-20s\n', 'Times', 'Frequency', 'Value');
fprintf('%s\n', repmat('-', 1, 20*3+2));
fprintf('%-20d %-20d %-20d\n', a, b, c);
Output is
    Times                Frequency            Value               
    --------------------------------------------------------------
    2                    6                    8
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Tables en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


