finding the last element of an array that fulfils a condition
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
hi , i want to calculate the difference inside a loop: diff=0.0002; for i=1:length(k) if diff(i)<=diff result=i; end end i want to save the last i (condition fulfilled) and not to the first one . Is that possible?
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
				Mehr zu Data Types finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

