Scalar Multiplication of different values at same time
    10 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
I have a function - 
[x1 x2 x3] = somefunction(y1,y2);
now i want to multiply the [x1 x2 x3] by scalar value z.
[x1 x2 x3] = [x1 x2 x3] .*z; % Want to do like this which is not valid as per the codde
instead of doing the multiplication individually i want to do the multiplication all at a time.
Is there any way to mulitiplication all at a time.
0 commentaires
Réponses (1)
  madhan ravi
      
      
 le 26 Juin 2019
        
      Modifié(e) : madhan ravi
      
      
 le 26 Juin 2019
  
      Assign the values with one output for instance as variable X which consists all the values in it.
6 commentaires
  per isakson
      
      
 le 27 Juin 2019
				
      Modifié(e) : per isakson
      
      
 le 27 Juin 2019
  
			AFAIK: NO!  However, some do weird tricks with  subsref  and subsasgn.
Voir également
Catégories
				En savoir plus sur Matrix Indexing dans Help Center et File Exchange
			
	Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


