Add text column to data
    1 Ansicht (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Dear whom regards, I'd like to add a text column (on the left side) to my given data (10x3 double) generated through my loop. So, currently I have the following format of data
1 1 1
1 1 2
1 1 3
1 1 4
1 2 1
1 3 1...
So, my desired data format is
    COORDINATE 1 1 1
    COORDINATE 1 1 2
    COORDINATE 1 1 3
    COORDINATE 1 1 4
    COORDINATE 1 2 1
    COORDINATE 1 3 1...
Any tips would be grateful. K-Won
0 Kommentare
Antworten (1)
  Azzi Abdelmalek
      
      
 am 30 Mai 2017
        A=[1 1 4
1 2 1
1 3 1]
B=repmat({'coordinate'},size(A,1),1)
out=[B num2cell(A)]
0 Kommentare
Siehe auch
Kategorien
				Mehr zu String finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

