plus or minus calculation
    7 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Dylan Mecca
 le 5 Mar 2018
  
    
    
    
    
    Réponse apportée : James Tursa
      
      
 le 5 Mar 2018
            Hi everyone,
I am trying to take a value, and subtract a vector from it. I want to then take that answer to check if it is within plus or minus a value of 0.025. Is there a function built into matlab for this? If not, will anybody be able to help me put something together?
0 commentaires
Réponse acceptée
  James Tursa
      
      
 le 5 Mar 2018
        Maybe something like this is what you need:
if( all(abs(your_value - your_vector) <= 0.25) )
    % etc
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Logical 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!

