|
From: | santico jinotir |
Subject: | [Octave-bug-tracker] [bug #47106] finding values in a vector with for-loop and if-statement |
Date: | Wed, 10 Feb 2016 02:16:32 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?47106> Summary: finding values in a vector with for-loop and if-statement Project: GNU Octave Submitted by: sanjin Submitted on: Wed 10 Feb 2016 02:16:31 AM GMT Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: sanjin Originator Email: Open/Closed: Open Discussion Lock: Any Release: 3.8.2 Operating System: GNU/Linux _______________________________________________________ Details: Hello, I am having problems finding values in a vector using a for-loop and an if-statement. I think this is a bug. When I run the for loop below the if-statement does not find the value x=2.8 or x=2.4 and others... *I am running openSUSE 13.2 *Octave version 3.8.2. *Octave was configured for "x86_64-suse-linux-gnu" x=0:.2:3; for i=1:length(x) x(i) if x(i)==2.8 fprintf('value found') end end _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47106> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |