Home MATLAB is rounding off to nearest integer
Reply: 0

MATLAB is rounding off to nearest integer

user334
1#
user334 Published in April 24, 2018, 6:25 am

I have a 1x50000 size matrix v and I want to convert it to zero mean and unit variance:

x = ((v-mean(v))/std2(v));

But instead of giving me exact floating point values MATLAB is converting it to nearest integers. Please help me in getting the exact values.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.456208 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO