- But I can do polyfits for the whole section, but I want to do polyfits multiple times in three minutes.
polyfits for continuous smile section with actual data
1 次查看(过去 30 天)
显示 更早的评论
first question.
I got the data from the actual measurement, and I'm going to polyfit it with the data.
But I can do polyfits for the whole section, but I want to do polyfits multiple times in three minutes.
Second question.
The reason I used log (5080 - 430) is because I want to apply it as real data.
However, during P= polyfit (x, Y, 1), the b and m values were selected.
But I just want to do a regression analysis of the m values. How should I change the expression?
Can you help me?
% % 1번 위치
file_name = '20200207_1.xlsx'
x= linspace( 1/60, 349/60 , 349);
y = xlsread(file_name, 'sheet1','C6:C354' );
y_t=y';
figure(1);
plot(x,y_t,'ro','Linewidth',1,'Markersize',1);
grid; hold on; axis([0 7 0 6000]);
Y = log( y_t - 430);
P= polyfit(x, Y, 1);
b = log(5080 - 430)
m = P(1)
X1=linspace(1/60,349/60,2000);
Y1=(exp(m*X1+b))+430;
plot(X1,Y1,'b-', 'linewidth', 1);
xlabel ('t [h]')
ylabel ('indoor CO2 concentration [ppm]')
title('20200207 1location')
legend ('real time data','ach = 0.7273')
hold off;
6 个评论
darova
2020-2-26
The question remains unclear for
You want to get coeffiecients for each region of a curve?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!