toSingle
Version 1.0.0.0 (1.24 KB) by
Ben Barrowes
Converts all numeric variables in the workspace, or optionally all doubles only, to single precision
% TOSINGLE - toSingle(doublesOnly)
%
% Converts all numerical variables in the calling
% workspace to single precision
%
% If doublesOnly is nonzero, then it converts only
% the doubles in the calling workspace to singles
%
Cite As
Ben Barrowes (2026). toSingle (https://nl.mathworks.com/matlabcentral/fileexchange/40444-tosingle), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Numbers and Precision in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
