Ask your own question, for FREE!
Mathematics 19 Online
OpenStudy (dan815):

anyone here know how to read line by line on matlab, or how to read all the data as 1 big list of numbers that excludes all white space characters and newline characters, ORR if you can just show me how to rearrange this data in python, i want it as a continuous flow of numbers without white space or new line characters

OpenStudy (dan815):

OpenStudy (dan815):

@ganeshie8

OpenStudy (dan815):

can you rearrange this data for me ganeshi

OpenStudy (dan815):

i wanna try an algorithm on it but it needs to be in an easier format for me to see if it works for this big data set too

OpenStudy (ikram002p):

=.= what kind off matlab is this

OpenStudy (ikram002p):

oh lol nw i got u u wanna arrange lol ok ok i thought its ur code wew !

OpenStudy (dan815):

so any idea ikram?

ganeshie8 (ganeshie8):

its a perl one-liner, wat exactly u want me do... ?

ganeshie8 (ganeshie8):

ganeshie8 (ganeshie8):

above is w/o newlines

ganeshie8 (ganeshie8):

this is w/o newlines+whitespaces :

OpenStudy (dan815):

ok perfect thanks

OpenStudy (dan815):

do u know the python code to do that?

ganeshie8 (ganeshie8):

i did it in perl commandline. should be a simple regex in python too. u work in unix/windows ?

OpenStudy (dan815):

windows

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!