Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Indexing
Replies: 4   Last Post: Mar 7, 2013 2:24 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Eric

Posts: 5
Registered: 9/7/12
Indexing
Posted: Mar 5, 2013 10:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I know I should be able to figure this out based on previous posts, but I still cannot find the correct solution. Within matrix A (nx1 matrix), I want to find the first instance that a value BW is 10 units less than BW--I'll call this value DROP. It is not a min or max value. I am just trying to index points on a force waveform so I can eventually integrate the area between points.

Specifically:
BW= 650;
DROP = BW-10;
[event1,ind1] = A(DROP,1);

Using this, I get an error 'Indexing cannot yield multiple results'.

I tried using find but all the values will be positive numbers.

Any suggestion is greatly appreciated.

Thanks,

Eric


Date Subject Author
3/5/13
Read Indexing
Eric
3/5/13
Read Re: Indexing
Derek Goring
3/6/13
Read Re: Indexing
dpb
3/7/13
Read Re: Indexing
Eric
3/7/13
Read Re: Indexing
dpb

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.