What Happened?
If a user specifies a medium.alpha_coeff that contains imaginary components, the error message received is medium.alpha_power must be a real number between 0 and 3. This is due to a typo in kspaceFirstOrder_inputChecking.m on line 216.
Appears the code should read if ~isreal(medium.alpha_power) || (medium.alpha_power >= 3 || medium.alpha_power < 0) instead of if ~isreal(medium.alpha_coeff) || (medium.alpha_power >= 3 || medium.alpha_power < 0)
Error messages
medium.alpha_power must be a real number between 0 and 3
How Can We Reproduce?
Run any example code, setting medium.alpha_coeff equal to a complex value or matrix.
Operating System
Windows
Release Version
1.4 (Default)
MATLAB Version
r2019b
What Happened?
If a user specifies a medium.alpha_coeff that contains imaginary components, the error message received is
medium.alpha_power must be a real number between 0 and 3. This is due to a typo inkspaceFirstOrder_inputChecking.mon line 216.Appears the code should read
if ~isreal(medium.alpha_power) || (medium.alpha_power >= 3 || medium.alpha_power < 0)instead ofif ~isreal(medium.alpha_coeff) || (medium.alpha_power >= 3 || medium.alpha_power < 0)Error messages
How Can We Reproduce?
Run any example code, setting
medium.alpha_coeffequal to a complex value or matrix.Operating System
Windows
Release Version
1.4 (Default)
MATLAB Version
r2019b