creating a matrix from vectors
    2 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Aleksandra Ksiezyk
 il 28 Ago 2020
  
    
    
    
    
    Risposto: Alan Stevens
      
      
 il 28 Ago 2020
            hallo, i have a vector Ta [12x1] and k[12x1] how could i create a matrix Ta_new [12,31] that the first column is Ta, the second column is Ta+k, the third column would be Ta+2k and so on.. ?
0 Commenti
Risposta accettata
  Alan Stevens
      
      
 il 28 Ago 2020
        Here's one way:
Ta_new = Ta;
for i = 1:30
    Ta_new = [Ta_new  Ta+i*k];
end
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Loops and Conditional Statements 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!

