help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error evaluating binary operator


From: Jordi Gutiérrez Hermoso
Subject: Re: error evaluating binary operator
Date: Sat, 2 Aug 2008 19:00:42 +0200

2008/8/1 Emily Moberg <address@hidden>:
> Hi!
> I have the following for loop
> [m,o]=size(A)
> for n=1:o
>
> idx=find(A(:,n)==0);
>
> if length(idx)>=m*(.7);
>
> A(:,n)=[];
>
> endif;
>
> endfor;
>
> and I keep getting an error evaluating binary operator '=='  for the
> idx=find(A(:,n)==0) line.

My guess is that it looks a little fishy that you're removing columns
from a matrix as you are iterating along the columns of that matrix. I
don't have a running instance of Octave to test this, however. And
what is the first error, not the last? Is the first error something
about an index out of bounds?

HTH,
- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]