round value in table
2 views (last 30 days)
Show older comments
LastName = {'Pressure';'Temprature';'Enthalpy'};
Station_1 = [ P1 ; T1 ; h1 ] ;
Station_2 = [ P2;T2a;h2a] ;
Station_3 = [ P3a ; T3 ; h3] ;
Station_4 = [ P4a ;T3;h3];
Station_5 = [ P3a;T3;h3];
printmat(Station_1,'value','Pressure Temprature Enthalpy ' , 'Station_1' );
it is giving me the values to 5 decimal places how to make them to a fixed decimal place EX
value =
Station_1
Pressure 1.00000
Temprature 300.00000
Enthalpy 300.19000
0 Comments
Answers (1)
Image Analyst
on 26 Sep 2015
With the round() function, you can specify the number of significant digits to the right of the decimal point.
0 Comments
See Also
Categories
Find more on Oceanography and Hydrology in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!