フィルターのクリア

Operator '+' is not supported for operands of type struct

6 ビュー (過去 30 日間)
Nathaniel Porter
Nathaniel Porter 2021 年 12 月 19 日
コメント済み: Nathaniel Porter 2021 年 12 月 19 日
Trying to get the data for each day separately but getting the error stated above. csv file attached
%patient 1 Day 5
%Formatting the date with time
glucose1_5.date.Format = 'dd.MM.uuuu HH:mm';
glucose1_5.time.Format = 'hh:mm:ss.S';
%Adding the date with time to the first column
glucose1_5.date = glucose1_5.date + glucose1_5.time;
%Changing glucose values from mmol/L to mg/dL by multiplying 18
glucose1_5.glucose = glucose1_5.glucose*18;
%plotting 3-5 cycles of glucose data over 6 days
plot(glucose1_5.date,glucose1_5.glucose);
grid on; legend('Patient1, Day5');
xlabel('Date and Time'); ylabel('Serum Glucose Level (mg/dl)');
hold on;
M5 = mean(glucose1_5.glucose)

採用された回答

VBBV
VBBV 2021 年 12 月 19 日
glucose1_5.date = [glucose1_5.date glucose1_5.time];
Try using the above when adding two different formats

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by