set_medium()

Description: Create a medium struct for use with other FOCUS functions.

Usage

medium = set_medium(cb, wb, rho, c_sound, b, atten_coeff, ct, kappa, beta);
medium = set_medium('lossless');
medium = set_medium('specificheatofblood',cb,'bloodperfusion',wb,'density',rho, 'soundspeed',c_sound,\
powerlawexponent',b,'attenuationdBcmMHz',atten_coeff, 'specificheat',ct,'thermalconductivity',kappa,'nonlinearityparameter',beta);

Arguments

Output Parameters

Notes

Calling set_medium with a string argument will create one of the default media created by define_media. The options for these strings are: lossless, attenuated, water, skin, fat, muscle, liver.

When the arguments are preceded by their names (e.g. set_medium('density',1500);), they can be in any order and any number of them can be missing. Calling set_medium with no arguments would be equivalent to calling set_medium('lossless');.

Calling this function with no arguments will cause the program to prompt the user for each required value.