[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading mat file
From: |
ahowe42 |
Subject: |
Re: Reading mat file |
Date: |
Wed, 21 Mar 2012 00:28:44 -0700 (PDT) |
Assuming I've understood, this is actually very easy to do:
[val,idx] = max(vv1);
max_x = x(idx);
if you run "help max", you'll see that it can pass two outputs: the first is
the actual maximum, and the second is the "first index of the maximum
value". The min function can do the same thing.
Oh, and to display the contents of a variable in MATLAB/octave, you don't
*have to* use disp. Just type the variable name at the prompt and hit
enter; this tells the program to print the contents to the screen.
Andrew
--
View this message in context:
http://octave.1599824.n4.nabble.com/Re-Reading-mat-file-tp4487833p4491496.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: Reading mat file, Jordi GutiƩrrez Hermoso, 2012/03/20
- Re: Reading mat file, asha g, 2012/03/20
- Re: Reading mat file, ahowe42, 2012/03/20
- Re: Reading mat file, asha g, 2012/03/20
- Re: Reading mat file, asha g, 2012/03/21
- Re: Reading mat file, asha g, 2012/03/21
- Re: Reading mat file, ahowe42, 2012/03/21
- Re: Reading mat file, asha g, 2012/03/21
- Re: Reading mat file,
ahowe42 <=
- Re: Reading mat file, asha g, 2012/03/21
- Re: Reading mat file, asha g, 2012/03/21
- Message not available
- Re: Reading mat file, asha g, 2012/03/21
- Re: Reading mat file, Doug Stewart, 2012/03/21
- Re: Reading mat file, ahowe42, 2012/03/21
- Re: Reading mat file, Jordi GutiƩrrez Hermoso, 2012/03/21
- findpeak, asha g, 2012/03/28
- findpeak, asha g, 2012/03/28
- Re: findpeak, Luke M, 2012/03/28
- Re: findpeak, asha g, 2012/03/29