Determine if a value has changed after some operations?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi all,
How can I determine if a value has changed or not after some operations? For example:
testA = valueA; 
% after some operations, testA = valueA or valueB;
% if value of testA changes, continue operation, elseif unchanges, cease operation.
0 Commenti
Risposte (1)
  Guillaume
      
      
 il 23 Apr 2018
        testA = valueA;
oldtestA = testA;
%... do some operations that may change testA
if oldtestA ~= testA   %assuming that testA is scalar
    %value has changed
else
    %value has not changed
end
0 Commenti
Vedere anche
Categorie
				Scopri di più su Systems of Nonlinear Equations 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!
