Text files for different types of data
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello all,
I have a doubt about how I should work with text files in the following case.
I choose a picture, a pattern from a list and I click a set of points. I can repeat the operation every time I want, and I write the data after every time. This makes me have a text file which looks like this:
Ruta de la imagen: %Path
C:\Users\Nerea Zubiaurre Altu\Documents\MATLAB\Vascular\vascular3.jpg
Patrón: %Pattern
No vena
Puntos: %Points
2.746032e+002 2.207196e+002
2.656581e+002 1.772720e+002
2.835483e+002 2.462770e+002
2.861040e+002 2.437213e+002
Ruta de la imagen: %Path
C:\Users\Nerea Zubiaurre Altu\Documents\MATLAB\Vascular\vascular7.jpg
Patrón: %Pattern
Vasos ramificados
Puntos: %Points
6.707429e+002 2.258311e+002
6.822438e+002 2.271090e+002
6.873552e+002 2.271090e+002
6.924667e+002 1.708827e+002
6.924667e+002 1.708827e+002
Afterwards, I want to import this data again to matlab to work with it but I am finding it complicated as there are different types of data. So I ahve tried as well saving them in different text files. That way, I can obtain the types properly but I cannot define the number of points (as I get a Mx2 matrix of doubles) and the number of point is variable from time to time....
Any idea or help?
I hope I made myself clear!
Nerea
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!