List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[mathcad] RE: max of array between two indices
| [mathcad] RE: max of array between two indices |
|
Author: Vladimir Gontcharov
Posted: Thu, 4 Nov 2004 10:21:39 -0000
|
try this function expression:
<<ole0.bmp>>
then call it...
-----Original Message-----
From: Chris Gibbins />
Sent: 04 November 2004 10:11
To: Mathcad Discussion List
Subject: [mathcad] max of array between two indices
Hi,
Does anyone have a method for searching a 1D array for the maximum value
between
two indices - i.e. a function like max(array,startindex,endindex), please?
With my best regards
Chris Gibbins
___________________________________
Dr. Chris J Gibbins
Radio Communications Research Unit
Rutherford Appleton Laboratory
Chilton, Didcot, Oxfordshire, OX11 0QX, UK
Tel: +44 1235 446584
Fax: +44 1235 446140
/>
---
The Mathcad List - Discussion, Support & News
Contributions: />
Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>
|
| [mathcad] Re: max of array between two indices |
|
Author: Samir Khan
Posted: Thu, 4 Nov 2004 10:28:26 +0000
|
Chris,
Have you tried nesting the max and submatrix functions? Something like....
max_value(V,i,j):=max(submatrix(V,i,j,0,0))
Samir
Chris Gibbins
c.uk> To
Mathcad Discussion List
04/11/2004 10:11
cc
Please respond to Subject
[mathcad] max of array between two
ptscience.com indices
Hi,
Does anyone have a method for searching a 1D array for the maximum value
between
two indices - i.e. a function like max(array,startindex,endindex), please?
With my best regards
Chris Gibbins
___________________________________
Dr. Chris J Gibbins
Radio Communications Research Unit
Rutherford Appleton Laboratory
Chilton, Didcot, Oxfordshire, OX11 0QX, UK
Tel: +44 1235 446584
Fax: +44 1235 446140
/>
---
The Mathcad List - Discussion, Support & News
Contributions: />
Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>
---
The Mathcad List - Discussion, Support & News
Contributions: />
Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>
|
| [mathcad] Re: max of array between two indices |
|
Author: Magnus Eklund
Posted: Thu, 4 Nov 2004 11:28:07 +0100 (
|
How about
max(submatrix(array,startindex,endindex,0,0)=
or
submax(array,startindex,endindex):=
max(submatrix(array,startindex,endindex,ORIGIN,ORIGIN)
/Magnus
On Thu, 4 Nov 2004, Chris Gibbins wrote:
> Hi,
>
> Does anyone have a method for searching a 1D array for the maximum value
> between
> two indices - i.e. a function like max(array,startindex,endindex), please?
>
> With my best regards
>
> Chris Gibbins
---
The Mathcad List - Discussion, Support & News
Contributions: />
Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>
|
| [mathcad] Re: max of array between two indices |
|
Author: Chris Gibbins
Posted: Thu, 04 Nov 2004 10:48:59 +0000
|
Thanks, everyone. You all suggested the same method, which works very well.
Chris Gibbins (novice!)
---
The Mathcad List - Discussion, Support & News
Contributions: />
Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>
|
| [mathcad] RE: max of array between two indices |
|
Author: Mark Smith
Posted: Thu, 4 Nov 2004 10:32:18 -0000
|
define new_vector as submatrix(old_vector,start,stop,0,0) & use
max(new_vector)
regards
mark
-----Original Message-----
From: Chris Gibbins />
Sent: 04 November 2004 10:11
To: Mathcad Discussion List
Subject: [mathcad] max of array between two indices
Hi,
Does anyone have a method for searching a 1D array for the maximum value
between
two indices - i.e. a function like max(array,startindex,endindex), please?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
The information contained in this e-mail message (and any attachment
transmitted herewith) is privileged and confidential and is intended for the
exclusive use of the addressee(s). If you are not an addressee, any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited. If you have received this
communication in error, please contact us immediately so that we can correct
the error.
---
The Mathcad List - Discussion, Support & News
Contributions: />
Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>
|
Previous by date: [mathcad] max of array between two indices, Chris Gibbins
Next by date: [mathcad] Re: max of array between two indices, Samir Khan
Previous thread: [mathcad] SV: Re: SV: Pasting MathCAD documents (V11) into MS
Word (97), Nils-Johan Tufte
Next thread: [mathcad] RE: max of array between two indices, Vladimir Gontcharov
|