필터 지우기
필터 지우기

displaying element of matrix

조회 수: 2 (최근 30일)
Eram Khan
Eram Khan 2021년 5월 2일
댓글: Image Analyst 2021년 5월 2일
How can I display a matrix as output of a function which element are two decimal point based number.

채택된 답변

Scott MacKenzie
Scott MacKenzie 2021년 5월 2일
편집: Scott MacKenzie 2021년 5월 2일
% assume M is a matrix of numeric values returned by your function
fprintf('%.2f\n', M); % print all the values, 2 decimal places each
  댓글 수: 2
Eram Khan
Eram Khan 2021년 5월 2일
thank you sir.
Image Analyst
Image Analyst 2021년 5월 2일
@Eram Khan, if it did what you want, please "Accept this answer" to award Scott his "reputation points".

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by