Assume that after some computation, matlab give me an output:
a(1)=3.712e-12a(2)=9.123e-13
How can i got the value of 12 and 13? Assume that a(1) and a(2) is in array a=[a(1) a(2)].
_
Edit: to avoid confussion, let me rearrange my question: "Can I get the 'index' (how many zeros in the right of the dot) of the first significant digit from data?". Is this is the only way?
n=1a(1)=3.712e-12while 1e1^-n>a(1) n=n+1;end
Best Answer