필터 지우기
필터 지우기

curve fitting area calculation?

조회 수: 2 (최근 30일)
Davide Cerra
Davide Cerra 2018년 12월 10일
how can i calculate the 2 separate areas of the graph?
a= xlsread('Rosborg BEM.xlsx.','Sheet1','A2:A366');
figure
%%allyear
subplot(2,1,1);
plot(a);
title('System Loads');
xlabel('Time[Days]');
ylabel('[kWh]');
xlim([0,365]);
grid on;
%%fitting
[xData, yData] = prepareCurveData( [], a );
ft = fittype( 'poly8' );
[fitresult, gof] = fit( xData, yData, ft, 'Normalize', 'on' );
subplot(2,1,2);
plot( fitresult, xData, yData );
xlim([0,365]);
legend off
gof
Untitled.png

답변 (0개)

카테고리

Help CenterFile Exchange에서 Fit Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by