Closed recordMing closed 1 year ago
It appears you aren't on R2020b or later if you don't have the mustBeScalarOrEmpty
validator function.
If that isn't an option, you can either define the validator yourself, or just delete the mustBeX
validators that are undefined in R2020a or R2019b.
Thank you kindly, the problem has been solved. Could you help explain what "kmedium_iso" means in UltragroundSystem.m? or whether there are relevant references? Thanks and regards.
Since this toolbox is primarily meant for pulse-echo ultrasound, it runs a background simulation to remove some certain propagation and modelling artifacts.
It does that by running a "isoimpedance" simulation, where the impedance is constant, therefore no reflections occur. That removes reflections off the boundaries of the simulation or direct propagation from source to receiver through where the transducer would be, for example.
Error using example_ (line 57) Error setting default value of property 'impulse' of class 'Transducer': Undefined function 'mustBeScalarOrEmpty' for input arguments of type 'Waveform'.