<html><head></head><body><div class="yahoo-style-wrap" style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div dir="ltr" data-setdir="false">Dears,</div><div dir="ltr" data-setdir="false">I would like to read a ".csv" file including different fields. Some arrays have no data and are empty. May I ask how I handle this file? I've tried the following lines, but I got the following warning because of arrays with no data.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div> f = "ncl.csv"</div><div> lnst<span style="white-space: pre-wrap;"> </span>= asciiread(f,-1,"string")</div><div> delim = ","</div><div><br></div><div>;-Read fields</div><div> pr<span style="white-space: pre-wrap;"> </span>= tofloat(str_get_field(lnst(1:),7, delim))<br></div><div><br></div><div><br></div><div dir="ltr" data-setdir="false">error:</div><div dir="ltr" data-setdir="false"><span>warning: tofloat: A bad value was passed to (string) tofloat, input strings must contain numeric digits, replacing with missing value</span><br></div><div><br></div></div>I've attached a sample input file and I'll be thankful if I hear from you.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><i><font size="2">Sincerely,</font></i></div><div dir="ltr" data-setdir="false"><i><font size="2">Ehsan Taghizadeh</font></i></div><div dir="ltr" data-setdir="false"><i><font size="2">University of Tehran, Iran</font></i></div></div></body></html>