필터 지우기
필터 지우기

how to shift decimals ? !!

조회 수: 3 (최근 30일)
pruth
pruth 2021년 6월 4일
편집: DGM 2021년 6월 4일
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

채택된 답변

DGM
DGM 2021년 6월 4일
편집: DGM 2021년 6월 4일
It all depends on the number format you specify:
mynumber = 3.023155942378474e+42;
title(sprintf('My Number is %.4e',mynumber))
See:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by