Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to import multiple .mat files to the workspace?

조회 수: 1 (최근 30일)
Rahul
Rahul 2024년 4월 28일
마감: Stephen23 2024년 4월 28일
Hello,
I have 72 no. of .mat files at a location (as in the path in code) which is not possible to import manually. Hence I tried to use the code as below. But it gives an error and is unable to import the same.
files = dir('D:\Rahul\Data_tokamak\data&plot\data_paper1\H-mode data\H-mode bistable model\set1_neoAno_ratio_10\beta0.01\Contourplot\*.mat');
for i=1:length(files)
load(files(i).name);
end
ERROR:
Error using load
Kindly advice.
rgds

답변 (0개)

이 질문은 마감되었습니다.

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by