I have a file called 'myfile.dat' which contains the following data:
date,time,current,voltage,power 12/01/60,3:56,1,2,3 12/01/61,3:57,2,4,6 12/01/67,3:58,3,,9 12/01/63,3:59,4,8 12/01/64,4:00,5,10,12
I am interested in reading the current, voltage, and power values from the file. As you can see, some data is missing so I would like to fill these spots with a zero. I would like to know what would be the best command to read such data in MATLAB.
Best Answer