Filter löschen
Filter löschen

how to shift decimals ? !!

3 Ansichten (letzte 30 Tage)
pruth
pruth am 4 Jun. 2021
Bearbeitet: DGM am 4 Jun. 2021
I want this value(3.023155942378474e+42) in title of plot but i want to reduece the length of these charachters i.e. 3.023e+42 !!
let mw know if you happen to know !
thanks

Akzeptierte Antwort

DGM
DGM am 4 Jun. 2021
Bearbeitet: DGM am 4 Jun. 2021
It all depends on the number format you specify:
mynumber = 3.023155942378474e+42;
title(sprintf('My Number is %.4e',mynumber))
See:

Weitere Antworten (0)

Kategorien

Mehr zu Elementary Math finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by