필터 지우기
필터 지우기

Iteration Through .mat Files in a For Loop

조회 수: 20 (최근 30일)
Spencer Ferris
Spencer Ferris 2021년 6월 10일
댓글: Spencer Ferris 2021년 6월 10일
I have a series of .mat files that are a structure. For example: "Data Structure for Participant 1". The only thing that is different between the files is the number at the end (1-20).
Each contains the exact same variables, I want to use a for loop and iterate through each of the files at once and do things to each of them, how would I do this? I understand how to access and work with the structure, I am just not sure how I would iterate through files in a for loop.

채택된 답변

Image Analyst
Image Analyst 2021년 6월 10일
This is one of our most FAQ-y FAQs, so see the FAQ:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by