<html><body><div>Hi all,</div><div><br></div><div>I would really appreciate your help with the error below. I keep getting it after fix trials. I uploaded the script as well.</div><div><br></div><li><p><b>The exact error message</b>:</p></li><li>Forcing data to be real and of class double before saving...<br>Error using write_edf (line 58)<br>Cannot write complex-valued data<br><br>Error in ft_write_data (line 745)<br> write_edf(filename, hdr, dat);<br><br></li><li><p><b>My MATLAB version: </b>MATLAB Version: 9.8.0.1323502 (R2020a)</p></li><li><p><b>My FieldTrip version: </b>stating that it is "revision unknown", downloaded on 11.08.2025</p></li><li><p><b>My operating system: </b>Microsoft Windows 10 Pro Version 10.0 (Build 19045)</p></li><br>Thank you for any help.<br><br><div>Kind Regards,</div><div>Natálie Šejvlová</div><br></body></html>