hi everyone, can someone explien how to get critical point for a list on matlab
this is my code and i want to get the critical point can someone help please
L = [0.5 0.7 0.8 1.3 1.5];
T = [1.433 1.667 1.784 2.280 2.450;
1.419 1.679 1.795 2.288 2.458;
1.405 1.691 1.806 2.297 2.466];
T_AVG= mean(T);
coefs = polyfit(L,T_AVG,2);
x2 = 0.5:1:1.5;
curve= polyval(coefs,x2);
plot(L,T_AVG,x2,curve)
xlabel('Lenght')
ylabel('Time_AVG')
title('Periodic time of a pendulum')
AVG = mean(T_AVG)
STD = std(T_AVG)
MAX = max(T_AVG)
MIN = min(T_AVG)
VAR = var(T_AVG)
this is my code and i want to get the critical point can someone help

댓글 수: 1

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 1월 3일
편집: KALYAN ACHARJYA 2021년 1월 3일
What does "critical points" mean here?

댓글을 달려면 로그인하십시오.

 채택된 답변

Matt J
Matt J 2021년 1월 3일

0 개 추천

r = roots(polyder(coefs));
criticalPts= = r(~imag(r))

추가 답변 (1개)

KSSV
KSSV 2021년 1월 3일

1 개 추천

L = [0.5 0.7 0.8 1.3 1.5];
T = [1.433 1.667 1.784 2.280 2.450;
1.419 1.679 1.795 2.288 2.458;
1.405 1.691 1.806 2.297 2.466];
T_AVG= mean(T);
coefs = polyfit(L,T_AVG,2);
x2 = 0.5:1:1.5;
curve= polyval(coefs,x2);
plot(L,T_AVG,x2,curve)
xlabel('Lenght')
ylabel('Time_AVG')
title('Periodic time of a pendulum')
AVG = mean(T_AVG) ;
STD = std(T_AVG) ;
MAX = max(T_AVG) ;
MIN = min(T_AVG) ;
VAR = var(T_AVG) ;
yi = [AVG MAX MIN ] ;
xi = interp1(T_AVG,L,yi) ;
hold on
plot(xi,yi,'*r')

댓글 수: 1

mohammad alsadi
mohammad alsadi 2021년 1월 3일
so this is the critical points thank you so much

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2021년 1월 3일

답변:

2021년 1월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by