displaying element of matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Eram Khan
am 2 Mai 2021
Kommentiert: Image Analyst
am 2 Mai 2021
How can I display a matrix as output of a function which element are two decimal point based number.
0 Kommentare
Akzeptierte Antwort
Scott MacKenzie
am 2 Mai 2021
Bearbeitet: Scott MacKenzie
am 2 Mai 2021
% 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 Kommentare
Image Analyst
am 2 Mai 2021
@Eram Khan, if it did what you want, please "Accept this answer" to award Scott his "reputation points".
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!