for k=1:length(kinetic); if (delta(j)<=kinetic(k)) && (j==k)filling_degree_regionI(j,k)=1/(2*pi).*(pi*(abra)/180-((rh/R).*cosd(kappa-kinetic(k))./cosd(alpha).*sind(abra)./cosd(shai-kinetic(k))))filling_degree_regionI_new(1,k)=filling_degree_regionI(j,k); endendendfor i=1:length(filling_degree_regionI_new); if filling_degree_regionI(i) > 0 new_filling_degree_regionI(i)=filling_degree_regionI(i); endend
Here, I have to calculate filling degree using delta and kinetics. Kinetics[1*13] are calculated using delta[1*13]=[0:10:180]. To calculate filling degree[1*13], delta should be less than equal to kinetics and length of delta and kinetics should be same. and also filling degree can't be zero. but there is some error showing there.
Undefined function or variable 'filling_degree_regionI_new'.
i can't figure it out how to solve it.
Best Answer