필터 지우기
필터 지우기

HOW TO get answer in 6 decimal places .

조회 수: 31 (최근 30일)
sadiqa ilyas
sadiqa ilyas 2019년 9월 21일
댓글: Boddu Meghanadh 2020년 3월 9일
Hi. I have for example U=0,1,2,3,4,5,6,7
i want to divide each no by 10000. I need the answer in decimal and then find the maximum value of X.Round,ceil,fix does not give me the desired result.
U=unique(point2(:,2));%some values of U
X=round(U/10000);
a=max(X)
  댓글 수: 4
David Hill
David Hill 2019년 9월 21일
a=sprintf('%0.6f',max(X));
But a will be a charactor array
sadiqa ilyas
sadiqa ilyas 2019년 9월 21일
thanks.

댓글을 달려면 로그인하십시오.

채택된 답변

David Hill
David Hill 2019년 9월 21일
  댓글 수: 1
Boddu Meghanadh
Boddu Meghanadh 2020년 3월 9일
can u write that briefly following syntax....with a simple example?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by