toSingle

Converts all numeric variables in the workspace, or optionally all doubles only, to single precision

You are now following this Submission

% 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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0