single precision simulation of internal calculations
Show older comments
I would like to experiment with beamforming. The hardware which may host the algorithm is only able to support single precision calculations. Is there a way to set Matlab to perform all calculations (even internal) to single precision? I am writing this iteration of the beamformer to avoid the use of toolboxes and their functions. Since this attempt is a first order estimate, I am limting the calculations to elementary mathemtical functions (exponentials, sines etc.).
7 Comments
Honglei Chen
on 28 May 2019
I know you are not using toolboxes, but just want to point out that beamformers in Phased Array System Toolbox does support single precision where all internal computatino is also done in single precision. Maybe you can use this as a baseline to compare with your own implementation.
HTH
Marc Adams
on 29 May 2019
Steven Lord
on 29 May 2019
Which functions, System objects, and/or blocks did you see their documentation say they supported only double precision, and which release are you using? I see in the Phased Array System Toolbox Release Notes that in releases R2018b and R2019a more functions, System objects, and blocks support single precision.
Marc Adams
on 29 May 2019
Steven Lord
on 31 May 2019
Thanks for pointing out that documentation page. I think it is in need of updating to reflect the increase in capability of Phased Array System Toolbox in recent releases. I've brought it to the attention of the documentation staff.
Marc Adams
on 31 May 2019
Honglei Chen
on 3 Jun 2019
There is nothing for you to specifically set. It depends on the input you pass in. In general, we use the data type of the data input to determine what precision of the interal calculation. For example, if your data input of the PhaseShiftBeamformer is single, then the computation will be carried out in single.
HTH
Accepted Answer
More Answers (0)
Categories
Find more on Beamforming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!