필터 지우기
필터 지우기

How to Load Two MAT Files with Variables of Similar Names?

조회 수: 1 (최근 30일)
Rightia Rollmann
Rightia Rollmann 2017년 2월 6일
답변: Steven Lord 2017년 2월 6일
I have a MAT File of variables A, B, and C. I have another MAT File with variables A, B, and C. Although the names of variables are the same, their contents are different. Is there any way to load both MAT files simultaneously to Workspace? I want to do that because MATLAB loads and clears the data of the MAT Files for each loop and the calculation time becomes so long.

채택된 답변

Steven Lord
Steven Lord 2017년 2월 6일
Call load with an output argument. The variables will be loaded as fields of the struct array that load call returns.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by