yes i have data & this is the script you gave me to load the data : % Define the folder…
- User
yes i have data & this is the script you gave me to load the data : % Define the folder path data_folder = 'C:\Users\Windows 10\Dataset\dataset\AD_Data_origanl mat file\Dataset 1';
% List all 23 .mat files in the dataset folder file_list = dir(fullfile(data_folder, 'preproctrials*.mat'));
% Initialize variables to store trials and metadata all_EEG_data = {}; % To store trials (EEG data) from all files fs = []; % Sampling frequency (should be constant at 256 Hz) channel_labels = {}; % EEG channel names (same for all files)
% Load data from all 23 files for file_idx = 1:length(file_list) % Load the .mat file file_path = fullfile(file_list(file_idx).folder, file_list(file_idx).name); loaded_data = load(file_path);
code% Access the substructure (likely named "data") data_structure = loaded_data.data; % Extract sampling frequency and channel labels (only needed once) if isempty(fs) fs = data_structure.fsample; % Sampling frequency channel_labels = data_structure.label; % Channel labels end % Extract EEG trials (each is 16x1280 matrix) num_trials = length(data_structure.trial); for trial_idx = 1:num_trials all_EEG_data{end+1} = data_structure.trial{trial_idx}; % Store each trial endend
% Output some information about the data disp(['Number of trials loaded: ', num2str(length(all_EEG_data))]); disp(['Number of EEG channels: ', num2str(length(channel_labels))]); disp(['Sampling frequency (Hz): ', num2str(fs)]);
figure; trial_to_plot = 1; % Choose a trial index to plot plot(all_EEG_data{trial_to_plot}'); title(['Trial ', num2str(trial_to_plot)]); xlabel('Time (samples)'); ylabel('Amplitude'); legend(channel_labels);
no i dont have any tqwt function or library wait im giving you notes about research paper
- Assistant
Sure! Please proceed with sharing the notes or information from the research paper. Let me know how I can assist you with it.