open the .mat-file with the name of 'priceenergy2020', search in each column the lowest value in matlab
main.m
% Load the .mat filedata = load('priceenergy2020.mat');
% Get the field names of the loaded datafieldNames = fieldnames(data);
% Initialize variables to store the lowest value and its column indexminValue = inf;
minIdx = 0;
% Loop through each field (assuming columns are stored as fields)fori = 1:numel(fieldNames)
columnData = data.(fieldNames{i});
[minVal, idx] = min(columnData);
% Check and update the lowest value and indexif minVal < minValue
minValue = minVal;
minIdx = i;
endend% Display the lowest value and its column indexfprintf('Lowest value found: %f\n', minValue);
fprintf('Found in column: %s\n', fieldNames{minIdx});