How to read vector from .RTF file into MATLAB?
Ältere Kommentare anzeigen
Hi MATLAB Central,
I have a very simply question - I would like to read a single row vector (called "cells_QC") from an .rtf file into MATLAB. My RTF file contains only something like:
cells_QC = [2,4,5,6,8,10,12,14,15,16,17,18,19,20,21;];
In retrospect, I shouldn't have saved these vectors in .rtf. But now I have to parse through a bunch of folders and read them in. I attempted to use functions fopen, load and fscanf, but when read they just give a single number.
I would really appreciate any help with how to read this into MATLAB as a vector.
Thanks in advance,
Anders
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu String Parsing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!