[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find number position

From: Ian McCallion
Subject: Re: find number position
Date: Sat, 13 Oct 2018 00:13:11 +0100

On Fri, 12 Oct 2018, 01:10 turbofib, <address@hidden> wrote:
i want to find lowest number position
a=[5 18 4 nan]

4 5 18 nan

if i write :

find(a==4) is not correct...i get  ans = 0

how can i position lowest number? thank you

[~,p]=min(a); %p is the position of lowest number in a.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]