Hi shock,
You first need to define the maps to be the correct dimension, and assign the background value. Then you can assign the wire using your code, e.g.,
Nx = 50;
Ny = 50;
Nz = 50;
c0 = 1500;
cwire = 5900;
sound_speed_map = c0 * ones(Nx, Ny, Nz);
sound_speed_map(Nx/2, Ny/2, 1:end) = cwire;
voxelPlot(sound_speed_map);
Keep in mind if you are defining a scatterer right to the edge of the grid to place the perfectly matched layer (PML) outside your simulation by setting the optional input 'PMLInside', false
.
Brad.