Hello, How to read a file that has given structure?
boundary -5.0 -5.0 5.0 15.0block -3.0 1.0 3.0 1.25block -3.0 1.0 -2.75 10.0block 2.75 1.0 3.0 10.0
I want array or matrix of first four digits e.g
boundary=[-5.0 -5.0 5.0 15.0],
and in the block should look like this
block=[ -3.0 1.0 3.0 1.25;-3.0 1.0 -2.75 10.0]
Number of rows is not constant but number of columns are constant so at the end, it should show me
boundary = 0 0 5 4blocks = 1 1 2 2 2 2 4 3
Thanks
Best Answer