Added MATLAB rewrite of the CARNOT optimisation function

This commit is contained in:
Radu C. Martin 2021-04-24 12:16:36 +02:00
parent adf4d0e02a
commit 7f9719cc64
15 changed files with 463 additions and 0 deletions

View file

@ -0,0 +1,8 @@
function w = weather_predictor2(wdb_mat,timestamp, N)
%WEATHER_PREDICTOR2 Summary of this function goes here
% Detailed explanation goes here
curr_idx = find(wdb_mat(:, 1) == timestamp);
N_idx = (1:N) + curr_idx;
w = [wdb_mat(N_idx, 18) + wdb_mat(N_idx, 19), wdb_mat(N_idx, 7)];
end