Importing UFF-file format text into matlab.

10 visualizaciones (últimos 30 días)
Arash Ehtesham
Arash Ehtesham el 12 de Sept. de 2012
Hi I hope someone can help with the following:
I have some data which I wish to import into matlab. The data is in UFF-format. Basically it looks like a notepad file when you open it. Please look for “Importing UFF-file format text into matlab” in the File Exchange part of mathworks website, and there you’ll find a screenshot and the UFF-file is available for download.
So what I wish is that all numbers and text are deleted, except for the numbers inside the blue box. So basically in this case, the numbers inside the blue box should come out as a 16x6matrix in matlab, like shown on the right hand side. Maybe you’re thinking: “Why aren’t you just copypasting each value one by one?”. That is simply because there will be hundreds of these blue boxes. So I wish to automate the process.
To be exact, I only need the numbers inside the green box. But, there will be many blue boxes with different numbers on different locations, so it’s easier if I just get a 16x6 matrix with all the numbers, then I can pick out the values I need later. To make things even trickier, the blue box won’t always come out as a 16x6 matrix. It should actually be Nx6, because the number of rows can vary, but not the number of columns.
I guess if someone knows a way to transform the file into a excel sheet, where each value will be in its own cell, then there won’t be need for a script/or program.
I can settle with just copying the (green box) columns as one piece from excel.
I hope didn’t bore you too much, and that I gave enough information for you to understand this problem. I also hope you have the time and means to help me.
Best Regards Arash Ehtesham, Master of Science, Engineering College of Aarhus, Denmark

Respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by