Import labview ascii text file as cell array
이전 댓글 표시
I have these labview .lvm files which I want to rearrange using MATLAB code. I think I can handle the rearranging bit, but I have not found a way to import the file which contains both numbers and strings into a cell array.
The file is of the format:
- 'tab' 'double' 'space' 'double' 'tab' 'many characters/numbers which I would import as single string'
- 'tab' 'double' 'space' 'double'
- 'tab' 'double' 'space' 'double'
- 'tab' 'double' 'space' 'double' 'tab' 'many characters/numbers which I would import as single string'
- 'tab' 'double' 'space' 'double'
- 'tab' 'double' 'space' 'double'
- etc
fopen returns -1 with any read/write argument, dlmread produces "Mismatch between file and format string.", importdata works but separates the data into a matrix and a cell so I can't pick out the individual parts, and lvm_import available on the codeshare produces the error "This does not appear to be a text-format LVM file (no header)."
Any ideas on how to get this file into MATLAB? Thanks.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 LabVIEW에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!