How do I load a file using the datastore
古いコメントを表示
I use datastore to load the file :
ds = datastore
My file has the following format:
(
bed_men 13)
( x y z u v w diameter t parcel-mass mass n-in-parcel time flow-time)
((-1.0836e+01 6.0325e+00 2.7604e+01 -3.1780e-02 2.2862e-02 -2.0795e-02 3.0000e-07 3.0212e+02 6.0308e-17 1.4112e-17 4.2736e+00 6.2385e+00 1.9529e+01) in_0.3:3287)
((-1.1105e+01 6.9827e+00 2.7548e+01 5.8978e-03 -4.6951e-03 4.9172e-03 1.1000e-06 3.0381e+02 3.4303e-16 6.9566e-16 4.9311e-01 1.8526e+01 3.6246e+01) in_11:5324)
I've created the tall array:
tt = tall(ds)
And we get something like this:
x_ x y z u v w diameter t parcel_mass mass n_in_parcel time flow_time_
'((-1.0621e+01' 6.8078 27.758 -0.1884 0.0085311 0.022321 7e-07 300.76 3.2413e-16 1.7927e-16 1.8081 1.6125 '1.6125e+00)' 'in_0.7:533)'
That's not what I want, because my first column is going to be x, otherwise I won't be able to calculate it.And I want to know if there is a way to get rid of "()" in this process.
1 件のコメント
Image Analyst
2021 年 5 月 2 日
You forgot to attach the file.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Big Data Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!