thorstone25 / qups

A MATLAB toolbox for prototyping and simulating diagnostic ultrasound imaging systems
Apache License 2.0
38 stars 20 forks source link

Error using example_.m #18

Closed recordMing closed 1 year ago

recordMing commented 1 year ago

Error using example_ (line 57) Error setting default value of property 'impulse' of class 'Transducer': Undefined function 'mustBeScalarOrEmpty' for input arguments of type 'Waveform'.

thorstone25 commented 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.

recordMing commented 1 year ago

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.

thorstone25 commented 1 year ago

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.