I am trying to show data, by using this code:
n = length(patient_1_e.patient_1);figure;for i = 1:n if (contains(patient_1_e.patient_1(i).Name, 'SM_dayOverview_day') == 1) % put the field data inside the new variable
process(i).Name = patient_1_e.patient_1(i).Name; process(i).Data = patient_1_e.patient_1(i).Data; if isempty(process(i).Name) ~= 1 disp("nih") process(i).Data{:,1} = datetime(process(i).Data{:,1}, 'InputFormat' ,'dd-MMM yyyy');% plot (process(i).Data{:,1}, process(i).Data{:,11});
end endend
But I got this error:
Error using datetime (line 616)Unable to parse date/time text using the format 'dd-MMM yyyy'. If the date/time text contain day, month, or time zonenames in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different localeusing the 'Locale' parameter.
Error in Main (line 39) process(i).Data{:,1} = datetime(process(i).Data{:,1}, 'InputFormat' ,'dd-MMM yyyy');
this is the content of the data "patient_1_e.patient_1(1).Data":
Any idea how to solve this?
Best Answer