Hi,
I tried to perform a 2 dimensions simulation (non homogeneous medium) and I got the following error message when i define the alpha_coeff, alpha_power and the medium density, (typically i was trying to simulate a part of a wall at audible frequencies) :
Error using im2frame
double-precision indexed CData values must be legal colormap indices: 1.0 <= value <=
length(colormap)
Error in kspaceFirstOrder2D (line 899)
movie_frames(frame_index) = im2frame(p_plot, COLOR_MAP); %#ok<AGROW>
Error in Grid_w_obstacles (line 157)
sensor_data = kspaceFirstOrder2D(kgrid,medium,source,sensor,input_args{:});
When i don't define alpha and (or) medium density the simulation works perfectly.
Does anyone have an idea how to fix this issue ?
Thanks a lot ,
GreG.