How to filter data with masks and update with new values

@. makes everything broadcast, without @. the line looks like:

Rec[pi/2 .< phi .< 3*pi/2] .= 0.0

c.f
https://docs.julialang.org/en/v1/manual/arrays/#Broadcasting

1 Like