[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: ARG?

**From**: |
Ben Abbott |

**Subject**: |
Re: ARG? |

**Date**: |
Tue, 21 Jun 2011 09:26:28 -0400 |

On Jun 21, 2011, at 6:02 AM, Bazman76 wrote:
>* Hi there,*
>* *
>* The code below was posted at the following address:*
>* *
>* http://www.quantcode.com/modules/mydownloads/singlefile.php?lid=495*
>* *
>* Just wondered what significance the "1;" has (I am compltetly new to octave)*
>* *
>* Also what does the following section do?*
>* *
>* badidx=find(abs(arg(S))>0);*
>* nBad_values=size(badidx,1) %should ideally be zero*
>* goodidx=find(abs(arg(S))==0);*
>* *
>* S=S(goodidx);*
>* *
>* Also what does the arg function do? (more generally is there a resource*
>* where I can type in an octave function name and find out what it does?)*
>* *
>* Thanks*
>* *
>* Baz*
The "1;" has no significance.
badidx is a vector in the indices of S where its phase is greater than zero.
nBad is the number of indices of S where its phase is greater than zero.
goodidx is a vector containing the indices of S where its phase is equal to
zero.
Ben

**ARG?**, *Bazman76*, `2011/06/21`
**Re: ARG?**,
*Ben Abbott* **<=**
**Re: ARG?**, *Jordi GutiĆ©rrez Hermoso*, `2011/06/21`