This post was edited by Sarah Nakamoto on Jan, 2021
Hi All:
When Frederik shared his revelation on publish, he opened my eyes to webread.m to bring in data directly to workspace. His example used a .csv file, which webread brings in beautifully (although I'm not sure how it assigns those field names to the structure 'w'). However, when I try webread on the following ascii file:
w=webread(www.essie.ufl.edu/~arnoldo/ocp6168/homework/lapreg.dat);
it brings it in as a long string (~83 kilocharacters), that needs to be parsed, reshaped, and converted (str2num), to work with numeric values. I just want a flag that tells MATLAB (webread) to expect the data to come in as double-precision numbers, not a long continuous string. I've looked up the documentation for webread and weboptions, but I didn't see a straightforward solution here. Anybody experienced with this who can point out my (dumb) mistake?
thanks.
Pete
Hi All:
When Frederik shared his revelation on publish, he opened my eyes to webread.m to bring in data directly to workspace. His example used a .csv file, which webread brings in beautifully (although I'm not sure how it assigns those field names to the structure 'w'). However, when I try webread on the following ascii file:
w=webread(www.essie.ufl.edu/~arnoldo/ocp6168/homework/lapreg.dat);
it brings it in as a long string (~83 kilocharacters), that needs to be parsed, reshaped, and converted (str2num), to work with numeric values. I just want a flag that tells MATLAB (webread) to expect the data to come in as double-precision numbers, not a long continuous string. I've looked up the documentation for webread and weboptions, but I didn't see a straightforward solution here. Anybody experienced with this who can point out my (dumb) mistake?
thanks.
Pete
7652:25262
Share