precision

plz tell how to reduce precision(decimal) in matlab

1 commentaire

James Tursa
James Tursa le 13 Mar 2012
Your question is too vague. Please provide more detail, with an example.

Connectez-vous pour commenter.

Réponses (1)

Jan
Jan le 13 Mar 2012

1 vote

a = pi; % Now [a] is a double using about 16 digits.
b = single(a); % [b] is a single with about 8 digits.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by