필터 지우기
필터 지우기

merge mat files with different size?

조회 수: 2 (최근 30일)
Muhammad Usman
Muhammad Usman 2020년 4월 22일
답변: Ameer Hamza 2020년 4월 22일
Hi,
Consider I have different .mat files and I want to merge them all and remove the repeated values, but the first problem I am facing is that my .mat files are not of same size, this thing doesn't allow me to concatenate/merge my files.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 4월 22일
You can save two variables in one file. For example
s1 = load('Class1.mat');
s2 = load('Class2.mat');
x = s1.x;
y = s2.y;
save('single_file', 'x', 'y');

카테고리

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