Info

This question is closed. Reopen it to edit or answer.

I want to get and display the results of a problem with 2 decimal digits , already it get me 4 digits , what should do i for get the results just with 2 decimal digits?

1 view (last 30 days)
Akshit
Akshit on 23 Jun 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
I want to get and display the results of a problem with 2 decimal digits , already it get me 4 digits , what should do i for get the results just with 2 decimal digits?

Answers (1)

José-Luis
José-Luis on 23 Jun 2014
Edited: José-Luis on 23 Jun 2014
format bank
rand(10,1)
Please provide feedback on the answers you get and accept the one that better solves your problem.

Community Treasure Hunt

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

Start Hunting!