Hi Astals,
I understand that you have a list of destinations and corresponding demand values for each destination and want to filter and identify which destinations have demand exceeding a specified maximum capacity.
Please go through the following code sample to proceed further,
destinations = [1, 2, 3, 4, 5];
demand = [5, 6, 7, 8, 9];
max_capacity = 5;
% Filter destinations based on demand exceeding maximum capacity
filtered_destinations = destinations(demand > max_capacity);
% Display the filtered destinations
disp('Destinations with demand exceeding maximum capacity:')
disp(filtered_destinations)
I hope this helps!