How can I read a specific column in a range text file with a specific format?

1 次查看(过去 30 天)
Hi all,
I have the following format in a large text file:
1.9145600e+001 3.8940100e+001 4.5080000e+001 2.6996400e+000
1.9135800e+001 3.8906100e+001 4.5080000e+001 2.6874200e+000
1.9116200e+001 3.8803900e+001 4.5080000e+001 2.6996400e+000
1.9116200e+001 3.8872000e+001 4.5080000e+001 2.6996400e+000
1.9106400e+001 3.9008200e+001 4.5080000e+001 2.6996400e+000
1.9106400e+001 3.8872000e+001 4.3240000e+001 2.6996400e+000
1.9096600e+001 3.8803900e+001 4.3240000e+001 2.6996400e+000
1.9096600e+001 3.8735700e+001 4.3240000e+001 2.6996400e+000
1.9086800e+001 3.8803900e+001 4.3240000e+001 2.6996400e+000
1.9067200e+001 3.8906100e+001 4.3240000e+001 2.6874200e+000
1.9067200e+001 3.8872000e+001 4.3240000e+001 2.6996400e+000
1.9067200e+001 3.8906100e+001 4.3240000e+001 2.6996400e+000
1.9086800e+001 3.9008200e+001 4.3240000e+001 2.6996400e+000
1.9018200e+001 3.8735700e+001 4.3240000e+001 2.6874200e+000
Is there any convenient method to read a specific column with a specific format XX.XXXX just four decimal values?
Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by