MATLAB How to load a non-rectangular array into MATLAB?

AI Thread Summary
Loading non-rectangular data into MATLAB from a text file requires special handling due to the differing sampling rates of the two quantities. The key approach involves reading the data into MATLAB using functions that can accommodate varying lengths, such as `textscan` or `readtable`. These functions allow for flexible data import, enabling the separation of the two vectors based on their respective sampling rates. Users may need to preprocess the data to align the time vectors or handle missing values appropriately. For detailed guidance, the MathWorks documentation provides examples and best practices for importing complex datasets.
czechman45
Messages
12
Reaction score
0
We have a sensor in the lab that measures two quantities and uses two different sampling rates. All four of these vectors are saved into the same text file. How can I load this into MATLAB when it is non-rectangular?

Thanks for your help.
 
Physics news on Phys.org
http://www.mathworks.com/help/techdoc/import_export/f5-35378.html#br2vfb5
 
Last edited by a moderator:

Similar threads

Replies
5
Views
2K
Replies
11
Views
4K
Replies
10
Views
3K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
5
Views
3K
Replies
4
Views
1K
Replies
18
Views
6K
Replies
4
Views
2K
Back
Top