Cell contents reference from a non-cell array object. Error in ShortCircuitCurrentIncrease (line 48) RadiantIntensity(i) = integral2{polarfun{: , 181 },PolarAngle3(i),0,pi,0,pi};
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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
2 Comments
Ang
on 30 Dec 2015
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!