Im trying to use logical indexing for a similar situation: it requires the comparison of a vector with another vector which is then changed depending on whether the condition is true. I want the next element of the vector to be compared to this new value and this carries on...
Because the...
Hi,
Im trying to compare two arrays - I want to compare each element separately to the corresponding element in the other array and use the answer as part of an if statement. This is what im doing so far that doesnt work:
if PeakEnv >=level
gain = (level/PeakEnv)^0.75
else
gain = 1
end
have...