source: trunk/src/round_uvmat.m @ 1086

Last change on this file since 1086 was 1078, checked in by sommeria, 13 months ago

various updates

File size: 252 bytes
Line 
1% provide a simple round value of Val of the form  1, 2 , 5 *10^n
2function RoundVal= round_uvmat(Val)
3
4ord=10^(floor(log10(Val)));%order of magnitude
5if Val/ord >= 5
6    RoundVal=5*ord;
7elseif Val/ord>=2
8    RoundVal=2*ord;
9else
10    RoundVal=ord;
11end
12
Note: See TracBrowser for help on using the repository browser.