How can i store multiple audio files in a variable ?

Illustration
esraa gamal - 2024-03-19T21:17:35+00:00
Question: How can i store multiple audio files in a variable ?

clc; clearvars; close all; % loading data load data; % Normal, Asthma , .., --> that is variable which i used to store audio files in them overall_dataset =[Normal; Asthma; Pneumonia; BRON; COPD; HeartFailure];  

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

Unless the files are all the same sampling frequency and the same number of samples and the same number of channels, then I recommend

 

overall_dataset = {Normal; Asthma; Pneumonia; BRON; COPD; HeartFailure};

along with storing the sampling frequency for each in a numeric vector unless you know that they are all the same.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!