plotting eta v/s iteration

조회 수: 4 (최근 30일)
Shubham
Shubham 2021년 2월 1일
편집: Shubham 2021년 2월 1일
I want to plot eta v/s iteration I dont know how to proceed

채택된 답변

KSSV
KSSV 2021년 2월 1일
N = 15 ;
beta_a = 10;
alpha_n = 10 ;
eta = zeros(1,N) ;
eta(1)=15;
for i=1:N-1
theta_i = asind(sind(beta_a)*sind(eta(i)));
theta_n = atand(tand(beta_a)*cosd(eta(i)))- alpha_n;
phi_i = asind(sqrt(2)*sind(theta_i));
phi_n = acosd(tand(theta_i)/tand(phi_i))-theta_n ;
eta(i+1) = atand((tand(i)*cosd(phi_n-alpha_n)-cosd(alpha_n)*tand(phi_i))/sind(phi_n));
end
plot(1:N,eta)

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by