Hello,
I try to simulate a pressure source where all source points should have a certain amplitude. I calculated the pressure profile of my ultrasonic transducer and stored it in a 2D array with values between 0 and 1.
Unfortunately I received the following error message:
"If using a labelled source.p_mask, the source labels must be monotonically increasing and start from 1."
If I understand the error message correctly, then it doesn't work the way I try. Is there any other way to do this?
I use the following commands:
%transducer is a 2D array with values between 0-1.
source.p_mask = transducer;
source.p = toneBurst(source_envelope, tone_burst_freq, tone_burst_cycles, 'Plot', true);
Thank you very much for your help!
Best Regards,
Kai