how to pass point to comma in matlab

hello every body. I have raw data that I recovered of a laser sensor this the point in such data is 12,365, does it have a way to pass commas in matlab example 12.365 (for the moment I made it through labview), thank you for your help

 Accepted Answer

b='12,365'
s1=strrep(b,',','.')
c=str2num(s1)

More Answers (0)

Asked:

on 16 Apr 2012

Community Treasure Hunt

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

Start Hunting!