Mrcalc -and errors


I’m quite a new user so please bear with me if this question is facile.

I’m trying to use mrcalc with the “-and” functionality but mrcalc states that the functionality doesn’t exist, yet it is shown as available in the latest documentation. My application is for lesion painting in MS patients and I want to find where my lesion image is > 1 and the segmented GM image from FAST is > 0 (ie probably mis-assigned voxels) so I can create a file with the mis-assigned voxel in.

I try:

mrcalc lesion.nii.gz -and output.nii.gz


mrcalc lesion.nii.gz -and output.nii.gz

and both times I receive:

[ERROR] unknown option “-and”

mrcalc -v returns:
== mrcalc 3.0_RC3_latest-75-g598ce7f3-dirty ==
64 bit release version, built Feb 27 2020, using Eigen 3.3.4
Author(s): J-Donald Tournier (
Copyright © 2008-2018 the MRtrix3 contributors.

Does mrcalc do this now? Is it a problem with the version / build I am using?

Your suggestions / comments would be much appreciated.

Kind regards


My apologies. This should have “mrcalc -and errors” as title

Yes, it does, as of version 3.0.0 – but not earlier versions unfortunately, this option doesn’t exist in 3.0_RC3.

Thank you, that’s very helpful to know which updated version should do this. Best regards, Peter