#Write the included data to an EXR file
tmpfile = tempfile(fileext = ".exr")
write_exr(tmpfile,
widecolorgamut[,,1],
widecolorgamut[,,2],
widecolorgamut[,,3],
widecolorgamut[,,4])
Run the code above in your browser using DataLab