Issue with different number rows in matlab

4 ビュー (過去 30 日間)
Obinna Mbadozie
Obinna Mbadozie 2019 年 9 月 23 日
回答済み: BhaTTa 2025 年 6 月 10 日

Hi, I am experencing some issues on matlab, i have about 20 struct files. The number of rows for each struct file is different. For example first file=1 by 4020 struct second file = 1 by 4117 struct third file = 1 by 4154 struct, and so;

I would like to write a code that will allow me to use each file when i call it? How do solve this problem ??

回答 (1 件)

BhaTTa
BhaTTa 2025 年 6 月 10 日
Hey @Obinna Mbadozie this is a very common scenario, especially when you have multiple experimental runs or data chunks stored in separate files. You're looking for a way to efficiently access and process each of your 20 struct files without manually loading and naming each one.
The best way to handle this in MATLAB is to use a cell array to store the structs after loading them.

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by