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};
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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 commentaires
Ang
le 30 Déc 2015
Réponses (0)
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!