I am just learning MATLAB for the first time.
I am reading some code trying to understand it. I believe I have two arrays below called pdw_raw & pdw_factors which contains a list of dates. The line that is causing me most confusion is the last line in the code below. The only way I can seem to make sense of this line is that every element in pdw_raw is being check against the max date of pdw_factors - is this correct?
Find the MATLAB syntax hard to understand at the moment.
%first retrieve the relevant dates;
sql_statement = ['select distinct pricedatew from D_RAWRETS order by pricedatew'];
cursor = exec(QES_DB, sql_statement);
cursor = fetch(cursor);
pdw_raw = datenum(cursor.data);
pdw_raw = pdw_raw(1:end-1, 1);
sql_statement = ['select distinct pricedatew from D_FACTORS order by pricedatew'];
cursor = exec(QES_DB, sql_statement);
cursor = fetch(cursor);
pdw_factors = datenum(cursor.data);
missing_dates = pdw_raw(pdw_raw > max(pdw_factors));