PolarAngle2 = [-pi/2:(1/180*pi):pi/2]; %incremental of polar angle of sun rays
PolarAngle3 = PolarAngle2';y = sin(PolarAngle3);for (i=1:1:181) NormalizedIntensity1(i) = NormalizedIntensity(i) * y(i); RadiantIntensity = zeros(size(NormalizedIntensity1)); RadiantIntensity = RadiantIntensity'; polarfun = @(AzimuthAngle,PolarAngle3) 1./((NormalizedIntensity1(i))'); end for(i=1:1:181) RadiantIntensity(i) = integral2(polarfun{: , 181 },PolarAngle3(i),0,pi,0,pi); figure; plot(Wavelengthnm,RadiantIntensity); xlabel('Wavelength(nm)'); ylabel('WavelengthDependentIrradiance'); title('WavelengthDependentIrradiance against Wavelength'); end
MATLAB: I have encounter an error with the following: Error in ShortCircuitCurrentIncrease (line 48) RadiantIntensity(i) = integral2(polarfun{: , 181 },PolarAngle3(i),0,pi,0,pi); Anyone Help please
0181 }error in shortcircuitcurrentincrease (line 48) radiantintensity(i) = integral2(polarfun{:pipi); anyone help pleasepolarangle3(i)xyz
Best Answer