Can I combine letters with numbers in the same matrix?
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
Can I combine letters with numbers in the same matrix?
I have vector B return two letters for example [L M]
And another vector O returns two numbers for example [1 2]
Can I combine them to be like this?
[L M
1 2]
0 comentarios
Respuesta aceptada
  Rik
      
      
 el 23 de Ag. de 2022
        You have these options:
{'L','M';1,2}
["L","M";"1","2"]
['L','M';1,2]
double(['L','M';1,2])
1 comentario
  Steven Lord
    
      
 el 23 de Ag. de 2022
				Another option:
T = table(['L'; 'M'], [1; 2])
T(1, :)
Más respuestas (0)
Ver también
Categorías
				Más información sobre Operators and Elementary Operations 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!