[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Min function
From: |
David Bateman |
Subject: |
Re: Min function |
Date: |
Fri, 02 Sep 2005 16:59:00 +0200 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20040923) |
cesarrodriguez.paginasamarillas.com wrote:
I am trying to use that matlab function [m, ind] = min(z, [], 2) when z is a
matriz , and it not working in octave.
Could somebody help me ?
I added this capability at version 2.1.58 and so you need at least
octave 2.1.58. For example with octave 2.9.3 I get
octave:1> version
ans = 2.9.3
octave:2> a = randn(3,3)
a =
-0.809444 -2.221320 0.993991
-1.353598 1.378312 0.290514
0.635460 -0.010115 -0.636746
octave:3> [m,ind] = min(a,[],2)
m =
-2.22132
-1.35360
-0.63675
ind =
2
1
3
Regards
David
--
David Bateman address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)
91193 Gif-Sur-Yvette FRANCE
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Min function, cesarrodriguez.paginasamarillas.com, 2005/09/02
- Re: Min function, Quentin Spencer, 2005/09/02
- Re: Min function,
David Bateman <=