Gistlib Logo

gistlib

open mat-file 'price_energy_2020.mat' and search for the first 24 rows the smallest value in matlab

main.m
% Load the mat file
data = load('price_energy_2020.mat');

% Get the first 24 rows of the data
first_24_rows = data.price_energy_2020(1:24);

% Find the smallest value in the first 24 rows
smallest_value = min(first_24_rows);
226 chars
9 lines

similar matlab code snippets

list all files in folder that contain the string "abc" inside in matlab
save an image using imwrite in matlab
how to search a cell matrix for a empty row of empty character cellsin matlab in matlab
iterate through all files in folder, open them and check if contains the string "abc" inside, then list all files that do in matlab
how to search a cell array for a row of empty character cells in matlab
fprintf with 2d array in matlab
load all files of a certain type in a folder in matlab
mnist file to mat in matlab
loop through all files in folder and list those which end with .m in matlab
find nearest value in array in matlab

related categories

matlab
file-io
search

gistlibby LogSnag