x and fx matrix
    12 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    reshef caspi
 le 11 Jan 2021
  
    
    
    
    
    Réponse apportée : WalterWhite
      
 le 11 Jan 2021
            i need help with building 2 row 10 colum matrix, the first row will present my x values and under every x i want the matrix to show me the value of f(x)
for example, if my f(x) = 2x  and 0<x<11
1 2 3 4  5   6   7    8  9  10
2 4 6 8 10 12 14 16 18 20
thanks for the help 
0 commentaires
Réponse acceptée
Plus de réponses (1)
  WalterWhite
      
 le 11 Jan 2021
        Another way to get the solution
x(1,:) = 1:10; %x
x(2,:) = x(1,:).^x(1,:); %f(x)= x^x
x
0 commentaires
Voir également
Catégories
				En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


