Extracting multiple sets of scientific notation data
显示 更早的评论
Hello all,
I am trying to extract some data for plotting and I've been struggling to get the data structered how I want it. I have a results file attached which is where I'm getting my data. I want to pull out the first section of data which represents node numbers and xyz coordinates and store this data as a Nx4 array (N happens to be 12881 for this file). I also want to pull out the very last temperature data set (at the very end, the NDTEMP block just above the RFL block) and store that as a 61x2 array.
The main problem I've been having so far is that the coordinates and temperature data is in exponential/scientific notation, and sscanf() doesn't seem to want to read them. I've tried formating sscanf() with %11.5E, %11.5e with no luck. The dimensions of the arrays come out correct if I format sscanf() with %d and %f but I want to keep the scientific notation if I can.
Any tips or advice would be greatly appreciated!
Thank you for your time,
Best,
John
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Large Files and Big Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!