Imported matrix size loop
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
Hi all, I'm trying to find a way to make matlab measure the amount of rows of .csv that I import. The purpose being to later associate an interval directly correlated with the amount of data imported(by row).
In short for example:
if x amount of rows are imported, then x interval
in y amount of rows imported, then y interval
etc.
I've included my .m file and a sample data file.
Thank you!
P.S. I am using 2014a
4 Kommentare
Stephen23
am 20 Feb. 2018
@Dylan Mecca: what is your question?
Dylan Mecca
am 20 Feb. 2018
Bob Thompson
am 20 Feb. 2018
If you've imported the data into an array, could you not just use size()? Perhaps I'm just making things too simple.
Dylan Mecca
am 20 Feb. 2018
Antworten (1)
Gil Kolin
am 21 Feb. 2018
0 Stimmen
I deleted my answer, so again (for the future): if you need to use just one line you can split it: aaa=strsplit(file_split,'\n'); size(aaa)
1 Kommentar
Dylan Mecca
am 21 Feb. 2018
Diese Frage ist geschlossen.
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!